.class public Lcom/opera/mini/android/AndroidNativeImage;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# static fields
.field public static A:I

.field public static B:I

.field public static C:Lcom/opera/mini/generic/LogicalDocument;

.field public static D:Z

.field public static E:I

.field public static F:I

.field public static G:I

.field public static H:I

.field public static J:I

.field public static K:Z

.field public static L:Ljava/lang/String;

.field public static M:I

.field public static N:I

.field public static O:I

.field public static P:Z

.field public static Q:Z

.field public static R:I

.field public static S:Z

.field public static T:Z

.field public static U:Z

.field public static V:I

.field public static W:I

.field public static X:Z

.field public static Y:Z

.field public static a:Lcom/opera/mini/generic/LogicalDocument;

.field public static aA:I

.field public static aB:I

.field public static aC:I

.field public static aD:I

.field public static aE:[B

.field public static aF:[B

.field public static aG:I

.field public static aH:I

.field public static aI:Ljava/util/Hashtable;

.field public static aJ:Ljava/lang/Integer;

.field public static aK:I

.field public static aL:[Lcom/opera/mini/generic/LogicalDocument;

.field public static aM:Z

.field public static aN:Ld;

.field public static aO:Lcom/opera/mini/generic/LogicalDocument;

.field public static aT:[S

.field public static aU:[S

.field public static aV:[S

.field public static aW:[I

.field public static aX:[I

.field public static aa:I

.field public static ab:I

.field public static ac:Z

.field public static ad:C

.field public static ae:Z

.field public static af:Z

.field public static ag:Z

.field public static ah:Z

.field public static ai:Z

.field public static aj:I

.field public static ak:Lcom/opera/mini/generic/LogicalDocument;

.field public static al:Z

.field public static am:I

.field public static an:[B

.field public static ao:Z

.field public static ap:[Ljava/lang/String;

.field public static aq:Z

.field public static ar:I

.field public static as:I

.field public static at:Ljava/lang/String;

.field public static au:[Lcom/opera/mini/generic/FontAdapter;

.field public static av:[I

.field public static aw:[I

.field public static ax:I

.field public static ay:I

.field public static az:Le;

.field public static b:Lcom/opera/mini/generic/LogicalDocument;

.field public static bO:[Ljava/lang/String;

.field public static bP:[[Ljava/lang/String;

.field public static bQ:I

.field public static bR:I

.field public static bS:I

.field public static bT:I

.field public static bU:I

.field public static bV:Z

.field public static bW:Z

.field public static bX:Z

.field public static bY:Z

.field public static c:Lcom/opera/mini/generic/LogicalDocument;

.field public static cA:[B

.field public static cB:I

.field public static cG:Z

.field public static cH:Ljava/lang/Object;

.field public static cI:Ljava/util/Vector;

.field public static ca:Z

.field public static cg:LCode;

.field public static cs:[I

.field public static ct:J

.field public static cu:[I

.field public static cv:[I

.field public static cw:[B

.field public static cx:Lcom/opera/mini/generic/LogicalDocument;

.field public static cy:[B

.field public static cz:[B

.field public static d:Lcom/opera/mini/generic/LogicalDocument;

.field public static e:Lcom/opera/mini/generic/LogicalDocument;

.field public static f:Z

.field public static g:Z

.field public static h:Ljava/lang/String;

.field public static i:I

.field public static j:I

.field public static k:I

.field public static l:I

.field public static m:Lcom/opera/mini/generic/FontAdapter;

.field public static n:Lcom/opera/mini/generic/ImageAdapter;

.field public static o:Lcom/opera/mini/generic/ImageAdapter;

.field public static p:Lcom/opera/mini/generic/ImageAdapter;

.field public static q:Lcom/opera/mini/generic/ImageAdapter;

.field public static r:Lcom/opera/mini/generic/LogicalDocument;

.field public static s:I

.field public static t:I

.field public static u:Z

.field public static v:Z

.field public static w:Z

.field public static x:J

.field public static y:J

.field public static z:I


# instance fields
.field private final Code:Landroid/graphics/Bitmap;

.field public aP:I

.field public aQ:I

.field public aR:I

.field public aS:[I

.field public aY:[B

.field public aZ:I

.field public bA:I

.field public bB:[I

.field public bC:[[I

.field public bD:[[I

.field public bE:[[S

.field public bF:[[B

.field public bG:[[B

.field public bH:[S

.field public bI:I

.field public bJ:I

.field public bK:[I

.field public bL:[[I

.field public bM:I

.field public bN:I

.field public bZ:Z

.field public ba:I

.field public bb:I

.field public bc:I

.field public bd:I

.field public be:I

.field public bf:[I

.field public bg:[I

.field public bh:[I

.field public bi:I

.field public bj:I

.field public bk:I

.field public bl:I

.field public bm:[I

.field public bn:I

.field public bo:[I

.field public bp:I

.field public bq:I

.field public br:I

.field public bs:I

.field public bt:[I

.field public bu:I

.field public bv:I

.field public bw:[[B

.field public bx:I

.field public by:[I

.field public bz:I

.field public cC:Lcom/opera/mini/generic/LogicalDocument;

.field public cD:Lcom/opera/mini/generic/LogicalDocument;

.field public cE:Lcom/opera/mini/generic/LogicalDocument;

.field public cF:Lcom/opera/mini/generic/LogicalDocument;

.field public cb:Ljava/util/Vector;

.field public cc:Ljava/io/DataInputStream;

.field public cd:Ljava/io/DataOutputStream;

.field public ce:Ljava/io/DataInputStream;

.field public cf:Ljava/io/DataOutputStream;

.field public ch:J

.field public ci:J

.field public cj:J

.field public ck:Lf;

.field public cl:Lf;

.field public cm:[B

.field public cn:[Ljava/lang/Object;

.field public co:Z

.field public final config:I

.field public cp:Z

.field public cq:Z

.field public cr:LB;

.field public final hasAlpha:Z

.field private final height:I

.field private final stride:I

.field private final width:I


# direct methods
.method public static constructor <clinit>()V
    .locals 12

    const/4 v11, 0x4

    const/4 v10, -0x1

    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v1, 0x0

    new-array v0, v9, [[Ljava/lang/String;

    new-array v2, v11, [Ljava/lang/String;

    const-string v3, "1"

    aput-object v3, v2, v1

    const-string v3, "c1dd7ab77e2c967746fe10681026c920f864811321bcb8be6bbfa5a03fda4e16c9c8db3af280f7703366e778e93c55e7159a8852d2b1381e521a337f22b1406cddf41a3114aecb4f4bfe79e0c5aa2ba8824fc989cb8bdcbf8ec5cef5176bfd4059f229b91bfa025126b295f9c409e75f6f6415ee094fd7f5dfd395a1f431668c5a08e88de891dc4dd38d4e9aa9b9c00dc604a0428e3aa5a28ccfa75af099147b"

    aput-object v3, v2, v8

    const-string v3, "socket://mini5.opera-mini.net:1080"

    aput-object v3, v2, v9

    const/4 v3, 0x3

    const-string v4, "http://mini5.opera-mini.net:80/"

    aput-object v4, v2, v3

    aput-object v2, v0, v1

    new-array v2, v11, [Ljava/lang/String;

    const-string v3, "2"

    aput-object v3, v2, v1

    const-string v3, "c1dd7ab77e2c967746fe10681026c920f864811321bcb8be6bbfa5a03fda4e16c9c8db3af280f7703366e778e93c55e7159a8852d2b1381e521a337f22b1406cddf41a3114aecb4f4bfe79e0c5aa2ba8824fc989cb8bdcbf8ec5cef5176bfd4059f229b91bfa025126b295f9c409e75f6f6415ee094fd7f5dfd395a1f431668c5a08e88de891dc4dd38d4e9aa9b9c00dc604a0428e3aa5a28ccfa75af099147b"

    aput-object v3, v2, v8

    const-string v3, "socket://mini5.opera-mini.net:1080"

    aput-object v3, v2, v9

    const/4 v3, 0x3

    const-string v4, "http://173.236.109.84:80/~savagebo/opm/"

    aput-object v4, v2, v3

    aput-object v2, v0, v8

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    sput v10, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    sput-boolean v8, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    move v2, v1

    move v3, v1

    move v4, v1

    move v5, v1

    move v6, v1

    move v7, v1

    invoke-direct/range {v0 .. v7}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IIIIIII)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cx:Lcom/opera/mini/generic/LogicalDocument;

    new-array v0, v1, [B

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    const/16 v0, 0x8

    new-array v0, v0, [B

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    const/16 v0, 0x20

    new-array v0, v0, [B

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cA:[B

    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0, v9}, Ljava/util/Vector;-><init>(I)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    new-instance v2, Lcom/opera/mini/generic/LogicalDocument;

    const-string v3, "i"

    const-string v4, "*"

    const-string v6, "/firsttime/*"

    move v5, v1

    move v7, v8

    invoke-direct/range {v2 .. v7}, Lcom/opera/mini/generic/LogicalDocument;-><init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)V

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aO:Lcom/opera/mini/generic/LogicalDocument;

    const-wide/32 v2, 0x7a120

    sput-wide v2, Lcom/opera/mini/android/AndroidNativeImage;->y:J

    sput v10, Lcom/opera/mini/android/AndroidNativeImage;->z:I

    sput v11, Lcom/opera/mini/android/AndroidNativeImage;->A:I

    sput-boolean v8, Lcom/opera/mini/android/AndroidNativeImage;->D:Z

    sput v10, Lcom/opera/mini/android/AndroidNativeImage;->G:I

    sput v10, Lcom/opera/mini/android/AndroidNativeImage;->M:I

    sput v8, Lcom/opera/mini/android/AndroidNativeImage;->O:I

    sput v10, Lcom/opera/mini/android/AndroidNativeImage;->R:I

    sput-boolean v8, Lcom/opera/mini/android/AndroidNativeImage;->X:Z

    sput-boolean v8, Lcom/opera/mini/android/AndroidNativeImage;->Y:Z

    sput v9, Lcom/opera/mini/android/AndroidNativeImage;->aa:I

    sput v9, Lcom/opera/mini/android/AndroidNativeImage;->ab:I

    const/16 v0, 0x2a

    sput-char v0, Lcom/opera/mini/android/AndroidNativeImage;->ad:C

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    invoke-direct {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>(I)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    sput-boolean v8, Lcom/opera/mini/android/AndroidNativeImage;->al:Z

    const/16 v0, 0xc

    new-array v0, v0, [I

    aput v8, v0, v1

    aput v8, v0, v8

    aput v9, v0, v9

    const/4 v2, 0x3

    aput v11, v0, v2

    const/16 v2, 0x8

    aput v2, v0, v11

    const/4 v2, 0x5

    aput v8, v0, v2

    const/4 v2, 0x6

    aput v8, v0, v2

    const/4 v2, 0x7

    aput v9, v0, v2

    const/16 v2, 0x8

    aput v11, v0, v2

    const/16 v2, 0x9

    const/16 v3, 0x8

    aput v3, v0, v2

    const/16 v2, 0xa

    aput v11, v0, v2

    const/16 v2, 0xb

    const/16 v3, 0x8

    aput v3, v0, v2

    const/4 v0, 0x3

    new-array v0, v0, [Ljava/lang/String;

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    const/16 v0, 0x8

    new-array v0, v0, [B

    fill-array-data v0, :array_0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aE:[B

    const/16 v0, 0x75

    new-array v0, v0, [B

    fill-array-data v0, :array_1

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aF:[B

    sput v10, Lcom/opera/mini/android/AndroidNativeImage;->aG:I

    sput v10, Lcom/opera/mini/android/AndroidNativeImage;->aH:I

    new-instance v0, Ljava/util/Hashtable;

    const/4 v2, 0x6

    invoke-direct {v0, v2}, Ljava/util/Hashtable;-><init>(I)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aI:Ljava/util/Hashtable;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aI:Ljava/util/Hashtable;

    const-string v2, "http"

    new-instance v3, Ljava/lang/Integer;

    const/16 v4, 0x50

    invoke-direct {v3, v4}, Ljava/lang/Integer;-><init>(I)V

    invoke-virtual {v0, v2, v3}, Ljava/util/Hashtable;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aI:Ljava/util/Hashtable;

    const-string v2, "https"

    new-instance v3, Ljava/lang/Integer;

    const/16 v4, 0x1bb

    invoke-direct {v3, v4}, Ljava/lang/Integer;-><init>(I)V

    invoke-virtual {v0, v2, v3}, Ljava/util/Hashtable;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aI:Ljava/util/Hashtable;

    const-string v2, "ftp"

    new-instance v3, Ljava/lang/Integer;

    const/16 v4, 0x15

    invoke-direct {v3, v4}, Ljava/lang/Integer;-><init>(I)V

    invoke-virtual {v0, v2, v3}, Ljava/util/Hashtable;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aI:Ljava/util/Hashtable;

    const-string v2, "rtsp"

    new-instance v3, Ljava/lang/Integer;

    const/16 v4, 0x22a

    invoke-direct {v3, v4}, Ljava/lang/Integer;-><init>(I)V

    invoke-virtual {v0, v2, v3}, Ljava/util/Hashtable;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v0, Ljava/lang/Integer;

    invoke-direct {v0, v1}, Ljava/lang/Integer;-><init>(I)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aJ:Ljava/lang/Integer;

    const v0, 0xffffff

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->J:I

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    const/16 v2, 0x28

    invoke-direct {v0, v2, v8}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IZ)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->C:Lcom/opera/mini/generic/LogicalDocument;

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    const/16 v2, 0xf

    invoke-direct {v0, v2, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IZ)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->a:Lcom/opera/mini/generic/LogicalDocument;

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    const/16 v2, 0xa

    invoke-direct {v0, v2, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IZ)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->b:Lcom/opera/mini/generic/LogicalDocument;

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    const/16 v2, 0x50

    invoke-direct {v0, v2, v8}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IZ)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->c:Lcom/opera/mini/generic/LogicalDocument;

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    const/16 v2, 0xb4

    invoke-direct {v0, v2, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IZ)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->d:Lcom/opera/mini/generic/LogicalDocument;

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    const/16 v2, 0xf

    invoke-direct {v0, v2, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IZ)V

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->e:Lcom/opera/mini/generic/LogicalDocument;

    return-void

    nop

    :array_0
    .array-data 0x1
        0x22t
        0x22t
        0x23t
        0x23t
        0x25t
        0x25t
        0x27t
        0x27t
    .end array-data

    :array_1
    .array-data 0x1
        0x21t
        0x22t
        0x22t
        0x23t
        0x23t
        0x24t
        0x24t
        0x25t
        0x25t
        0x26t
        0x26t
        0x26t
        0x26t
        0x27t
        0x27t
        0x28t
        0x28t
        0x28t
        0x28t
        0x29t
        0x29t
        0x2at
        0x2at
        0x2at
        0x2at
        0x2bt
        0x2bt
        0x2bt
        0x2bt
        0x2ct
        0x2ct
        0x2ct
        0x2ct
        0x2dt
        0x2dt
        0x2dt
        0x2dt
        0x2et
        0x2et
        0x2et
        0x2et
        0x2ft
        0x2ft
        0x30t
        0x30t
        0x31t
        0x31t
        0x32t
        0x32t
        0x33t
        0x33t
        0x33t
        0x33t
        0x34t
        0x34t
        0x34t
        0x34t
        0x35t
        0x35t
        0x35t
        0x35t
        0x36t
        0x36t
        0x36t
        0x36t
        0x37t
        0x37t
        0x37t
        0x37t
        0x38t
        0x38t
        0x38t
        0x38t
        0x39t
        0x39t
        0x39t
        0x39t
        0x3at
        0x3at
        0x3at
        0x3at
        0x41t
        0x41t
        0x41t
        0x41t
        0x42t
        0x42t
        0x42t
        0x42t
        0x43t
        0x43t
        0x43t
        0x43t
        0x44t
        0x44t
        0x44t
        0x44t
        0x45t
        0x45t
        0x45t
        0x45t
        0x46t
        0x46t
        0x46t
        0x46t
        0x47t
        0x47t
        0x47t
        0x47t
        0x48t
        0x48t
        0x49t
        0x49t
        0x4at
        0x4at
        0x4at
        0x4at
    .end array-data
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(I)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(II)V
    .locals 4

    const/16 v1, 0x10

    const/4 v3, 0x0

    const/4 v2, 0x3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bf:[I

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bt:[I

    new-array v0, v2, [[B

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    const/4 v0, 0x6

    new-array v0, v0, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bB:[I

    new-array v0, v1, [[I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bC:[[I

    new-array v0, v1, [[I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bD:[[I

    new-array v0, v1, [[S

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bE:[[S

    new-array v0, v1, [[B

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bF:[[B

    new-array v0, v1, [[B

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    new-array v0, v2, [S

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bH:[S

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    const/4 v0, 0x4

    new-array v0, v0, [[I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    const/4 v0, -0x1

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->g()V

    const/4 v0, 0x0

    :goto_0
    if-ge v0, v2, :cond_0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    aput-object v3, v1, v0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bC:[[I

    aput-object v3, v1, v0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bD:[[I

    aput-object v3, v1, v0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bE:[[S

    aput-object v3, v1, v0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bF:[[B

    aput-object v3, v1, v0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    aput-object v3, v1, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public constructor <init>(III)V
    .locals 3

    const/16 v1, 0x58

    const/4 v2, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    const/16 v0, 0x400

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    new-array v0, v1, [Ljava/lang/Object;

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    new-array v0, v1, [I

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    iput p1, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->bQ:I

    if-nez v0, :cond_0

    invoke-static {v2, v2}, Lcom/opera/mini/android/AndroidNativeImage;->I(IZ)V

    const-string v0, "md"

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    :cond_0
    if-lez p1, :cond_2

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->aM:Z

    if-eqz v0, :cond_2

    const-string v0, "http://"

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->d(Ljava/lang/String;)I

    move-result v0

    :goto_0
    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->ah:Z

    if-eqz v0, :cond_3

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    const/16 v1, 0xa0

    if-lt v0, v1, :cond_3

    const/4 v0, 0x1

    :goto_1
    iput-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->hasAlpha:Z

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-gt v0, p1, :cond_1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    add-int/lit8 v1, p1, 0x1

    invoke-virtual {v0, v1}, Ljava/util/Vector;->setSize(I)V

    :cond_1
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    invoke-virtual {v0, p0, p1}, Ljava/util/Vector;->setElementAt(Ljava/lang/Object;I)V

    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Runnable;)V

    return-void

    :cond_2
    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->bS:I

    goto :goto_0

    :cond_3
    move v0, v2

    goto :goto_1
.end method

.method public static B(II)I
    .locals 1

    shr-int/lit8 v0, p0, 0x8

    mul-int/2addr v0, p1

    return v0
.end method

.method public static B(Ljava/lang/String;)Ljava/lang/String;
    .locals 5

    invoke-static {p0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    array-length v4, v1

    invoke-virtual {v2, v1, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->Z([BII)V

    :cond_0
    return-object v0
.end method

.method public static B()V
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x1

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->f:Z

    if-nez v0, :cond_7

    :try_start_0
    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    const-string v1, "splash"

    invoke-virtual {v0, v1}, Ld;->Code(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    const-string v1, "splash"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Ld;->Code(Ljava/lang/String;I)[B

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->c([BI)I

    move-result v0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->t:I

    :cond_0
    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    const-string v1, "splash"

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Ld;->Code(Ljava/lang/String;I)[B

    move-result-object v0

    if-eqz v0, :cond_1

    new-instance v1, Lcom/opera/mini/generic/LogicalDocument;

    new-instance v2, Ljava/io/DataInputStream;

    new-instance v3, Ljava/io/ByteArrayInputStream;

    invoke-direct {v3, v0}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    invoke-direct {v2, v3}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v1, v2}, Lcom/opera/mini/generic/LogicalDocument;-><init>(Ljava/io/DataInputStream;)V

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :cond_1
    :goto_0
    :try_start_1
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    if-eqz v0, :cond_2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "background"

    const-string v2, "color"

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->J:I

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->J:I

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "brand-logo"

    const-string v2, "bitmap"

    invoke-virtual {v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->B(Ljava/lang/String;Ljava/lang/String;)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "brand-logo"

    const-string v2, "vpos"

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->C:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;Lcom/opera/mini/generic/LogicalDocument;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->C:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "opera-logo"

    const-string v2, "bitmap"

    invoke-virtual {v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->B(Ljava/lang/String;Ljava/lang/String;)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "opera-logo"

    const-string v2, "vpos"

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->a:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;Lcom/opera/mini/generic/LogicalDocument;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->a:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "progress-bar"

    const-string v2, "vpos"

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->c:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;Lcom/opera/mini/generic/LogicalDocument;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->c:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "progress-bar"

    const-string v2, "width"

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->d:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;Lcom/opera/mini/generic/LogicalDocument;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->d:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "progress-bar"

    const-string v2, "edge"

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->b:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;Lcom/opera/mini/generic/LogicalDocument;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->b:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "progress-bar"

    const-string v2, "empty"

    invoke-virtual {v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->B(Ljava/lang/String;Ljava/lang/String;)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->p:Lcom/opera/mini/generic/ImageAdapter;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "progress-bar"

    const-string v2, "full"

    invoke-virtual {v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->B(Ljava/lang/String;Ljava/lang/String;)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->q:Lcom/opera/mini/generic/ImageAdapter;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "progress-label"

    const-string v2, "vpos"

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->e:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;Lcom/opera/mini/generic/LogicalDocument;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->e:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;

    const-string v1, "progress-label"

    const-string v2, "color"

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->B:I

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->B:I

    :cond_2
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    if-nez v0, :cond_3

    const v0, 0x8002

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(IZ)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    :cond_3
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    if-nez v0, :cond_4

    const v0, 0x8003

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(IZ)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    :cond_4
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->p:Lcom/opera/mini/generic/ImageAdapter;

    if-nez v0, :cond_5

    const v0, 0x8004

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(IZ)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->p:Lcom/opera/mini/generic/ImageAdapter;

    :cond_5
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->q:Lcom/opera/mini/generic/ImageAdapter;

    if-nez v0, :cond_6

    const v0, 0x8005

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(IZ)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->q:Lcom/opera/mini/generic/ImageAdapter;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_6
    :goto_1
    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->ap()Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    const/16 v1, 0x40

    const/16 v2, 0x8

    invoke-virtual {v0, v1, v5, v2}, Lcom/opera/mini/generic/LogicalDocument;->Z(III)Lcom/opera/mini/generic/FontAdapter;

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->m:Lcom/opera/mini/generic/FontAdapter;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->p:Lcom/opera/mini/generic/ImageAdapter;

    invoke-virtual {v0}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->q:Lcom/opera/mini/generic/ImageAdapter;

    invoke-virtual {v1}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->s:I

    sput-boolean v4, Lcom/opera/mini/android/AndroidNativeImage;->f:Z

    sput-boolean v5, Lcom/opera/mini/android/AndroidNativeImage;->g:Z

    :cond_7
    return-void

    :catchall_0
    move-exception v0

    goto :goto_1

    :catchall_1
    move-exception v0

    goto/16 :goto_0
.end method

.method public static B(I)V
    .locals 5

    const/4 v0, 0x0

    const v1, 0x8000

    and-int/2addr v1, p0

    if-nez v1, :cond_0

    :try_start_0
    new-instance v1, Ljava/io/DataInputStream;

    const-string v2, "/t"

    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->J(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    invoke-static {p0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ILjava/io/DataInputStream;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result v0

    move-object v4, v1

    move v1, v0

    move-object v0, v4

    :goto_0
    :try_start_2
    sget-object v2, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    invoke-virtual {v2, v1}, Lcom/opera/bream/vm/BreamVM;->B(I)V

    sget-object v2, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    iget-object v2, v2, Lcom/opera/bream/vm/BreamVM;->bytePage:[B

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3, v1}, Ljava/io/DataInputStream;->readFully([BII)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_3
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    :goto_1
    return-void

    :cond_0
    :try_start_3
    invoke-static {p0}, LCode;->Code(I)LCode;

    move-result-object v1

    new-instance v2, Ljava/io/DataInputStream;

    invoke-direct {v2, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    :try_start_4
    iget v0, v1, LCode;->Z:I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    move v1, v0

    move-object v0, v2

    goto :goto_0

    :catch_0
    move-exception v1

    :goto_2
    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    goto :goto_1

    :catchall_0
    move-exception v1

    move-object v4, v1

    move-object v1, v0

    move-object v0, v4

    :goto_3
    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    throw v0

    :catchall_1
    move-exception v0

    goto :goto_3

    :catchall_2
    move-exception v0

    move-object v1, v2

    goto :goto_3

    :catchall_3
    move-exception v1

    move-object v4, v1

    move-object v1, v0

    move-object v0, v4

    goto :goto_3

    :catch_1
    move-exception v0

    move-object v0, v1

    goto :goto_2

    :catch_2
    move-exception v0

    move-object v0, v2

    goto :goto_2
.end method

.method public static C(I)Ljava/lang/String;
    .locals 1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    aget-object v0, v0, p0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    aget-object v0, v0, p0

    :goto_0
    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public static declared-synchronized C()V
    .locals 2

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    const/4 v1, 0x0

    :try_start_0
    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->f:Z

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->p:Lcom/opera/mini/generic/ImageAdapter;

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->q:Lcom/opera/mini/generic/ImageAdapter;

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->r:Lcom/opera/mini/generic/LogicalDocument;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static C(Ljava/lang/String;)V
    .locals 7

    const/4 v4, 0x1

    const/4 v6, 0x0

    :try_start_0
    new-instance v0, Le;

    invoke-direct {v0}, Le;-><init>()V

    new-instance v1, Ljava/io/DataOutputStream;

    invoke-direct {v1, v0}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    const-string v2, "mc"

    invoke-virtual {v2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->write(I)V

    const/4 v2, 0x1

    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->C(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    const/16 v3, 0xa0

    if-lt v2, v3, :cond_2

    move v2, v4

    :goto_0
    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->writeBoolean(Z)V

    :cond_0
    :goto_1
    invoke-virtual {v0}, Le;->toByteArray()[B

    move-result-object v0

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    invoke-virtual {v1, p0}, Ld;->J(Ljava/lang/String;)V

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    invoke-virtual {v1, p0, v0}, Ld;->Code(Ljava/lang/String;[B)I

    :cond_1
    :goto_2
    return-void

    :cond_2
    move v2, v6

    goto :goto_0

    :cond_3
    const-string v2, "md"

    invoke-virtual {v2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->write(I)V

    const/16 v2, 0x20

    new-array v2, v2, [B

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v3, v2}, Lcom/opera/mini/generic/LogicalDocument;->Code([B)V

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v4, 0x0

    const/16 v5, 0x20

    invoke-virtual {v3, v2, v4, v5}, Lcom/opera/mini/generic/LogicalDocument;->Z([BII)V

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->write([B)V

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/DataOutputStream;)V

    sget-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->aq:Z

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->writeBoolean(Z)V

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->ar:I

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->writeInt(I)V

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->aa:I

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->writeInt(I)V

    sget-object v2, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v2, v1}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/io/DataOutputStream;)V

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->as:I

    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->writeInt(I)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->at:Ljava/lang/String;

    if-eqz v2, :cond_4

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->at:Ljava/lang/String;

    :goto_3
    invoke-virtual {v1, v2}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    goto :goto_1

    :catchall_0
    move-exception v0

    if-nez v6, :cond_1

    goto :goto_2

    :cond_4
    const-string v2, ""
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_3
.end method

.method public static Code(IC)I
    .locals 1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v0, v0, p0

    invoke-interface {v0, p1}, Lcom/opera/mini/generic/FontAdapter;->charWidth(C)I

    move-result v0

    return v0
.end method

.method public static Code(III)I
    .locals 1

    invoke-static {p0, p2}, Ljava/lang/Math;->min(II)I

    move-result v0

    invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I

    move-result v0

    return v0
.end method

.method public static Code(ILjava/io/DataInputStream;)I
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    and-int/lit16 v0, p0, 0x7fff

    mul-int/lit8 v0, v0, 0x4

    invoke-static {p1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;I)V

    invoke-virtual {p1}, Ljava/io/DataInputStream;->readInt()I

    move-result v0

    invoke-virtual {p1}, Ljava/io/DataInputStream;->readInt()I

    move-result v1

    add-int/lit8 v1, v1, 0x4

    sub-int/2addr v1, v0

    invoke-static {p1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;I)V

    return v1
.end method

.method public static Code(ILjava/lang/String;)I
    .locals 1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v0, v0, p0

    invoke-interface {v0, p1}, Lcom/opera/mini/generic/FontAdapter;->stringWidth(Ljava/lang/String;)I

    move-result v0

    return v0
.end method

.method public static Code(I[CII)I
    .locals 1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v0, v0, p0

    invoke-interface {v0, p1, p2, p3}, Lcom/opera/mini/generic/FontAdapter;->charsWidth([CII)I

    move-result v0

    return v0
.end method

.method public static declared-synchronized Code(Lcom/opera/mini/android/AndroidNativeImage;)I
    .locals 6

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    :try_start_0
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cw:[B
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v1, :cond_0

    const/4 v1, -0x1

    :goto_0
    monitor-exit v0

    return v1

    :cond_0
    :try_start_1
    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x0

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->cB:I

    shr-int/lit8 v3, v3, 0x10

    int-to-byte v3, v3

    aput-byte v3, v1, v2

    const/4 v2, 0x1

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->cB:I

    and-int/lit16 v3, v3, 0xff

    int-to-byte v3, v3

    aput-byte v3, v1, v2

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cx:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x2

    invoke-virtual {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->Z([BI)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cx:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    invoke-virtual {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BI)V

    new-instance v2, Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    invoke-direct {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;-><init>([BI)V

    iput-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cC:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cC:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    const/4 v4, 0x0

    const/16 v5, 0x8

    invoke-virtual {v2, v3, v4, v5}, Lcom/opera/mini/generic/LogicalDocument;->Code([BII)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cx:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    invoke-virtual {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BI)V

    new-instance v2, Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    invoke-direct {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;-><init>([BI)V

    iput-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cD:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cD:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    const/4 v4, 0x0

    const/16 v5, 0x8

    invoke-virtual {v2, v3, v4, v5}, Lcom/opera/mini/generic/LogicalDocument;->Code([BII)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cx:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    invoke-virtual {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BI)V

    new-instance v2, Lcom/opera/mini/generic/LogicalDocument;

    invoke-direct {v2, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>([B)V

    iput-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cE:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cE:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    const/16 v4, 0x400

    invoke-virtual {v2, v1, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->J([BII)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cx:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    invoke-virtual {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BI)V

    new-instance v2, Lcom/opera/mini/generic/LogicalDocument;

    invoke-direct {v2, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>([B)V

    iput-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cF:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cF:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x0

    const/16 v4, 0x400

    invoke-virtual {v2, v1, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->J([BII)V

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->cB:I

    add-int/lit8 v2, v1, 0x1

    sput v2, Lcom/opera/mini/android/AndroidNativeImage;->cB:I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static Code(Ljava/util/Hashtable;)I
    .locals 5

    const/4 v4, 0x0

    if-nez p0, :cond_0

    move v0, v4

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x7

    invoke-virtual {p0}, Ljava/util/Hashtable;->keys()Ljava/util/Enumeration;

    move-result-object v2

    move v3, v0

    :goto_1
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p0, v0}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/Object;

    invoke-static {v0}, Lcom/opera/mini/generic/LogicalDocument;->u(Ljava/lang/String;)I

    move-result v0

    add-int/lit8 v0, v0, 0x2

    add-int/2addr v3, v0

    aget-object v0, v1, v4

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Lcom/opera/mini/generic/LogicalDocument;->u(Ljava/lang/String;)I

    move-result v0

    add-int/lit8 v0, v0, 0x2

    add-int/2addr v3, v0

    const/4 v0, 0x1

    aget-object v0, v1, v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    add-int/lit8 v0, v0, 0x4

    add-int/2addr v0, v3

    move v3, v0

    goto :goto_1

    :cond_1
    move v0, v3

    goto :goto_0
.end method

.method public static Code([Ljava/lang/Object;[II)LCode;
    .locals 1

    new-instance v0, LCode;

    invoke-direct {v0, p0, p1, p2}, LCode;-><init>([Ljava/lang/Object;[II)V

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;)V

    invoke-static {p2}, Lcom/opera/mini/android/AndroidNativeImage;->e(I)V

    return-object v0
.end method

.method public static Code(IZ)Lcom/opera/mini/generic/ImageAdapter;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Throwable;
        }
    .end annotation

    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->J(I)[B

    move-result-object v0

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1}, Lcom/opera/mini/generic/LogicalDocument;->an()Lcom/opera/mini/android/MultiTouchAdapter;

    move-result-object v1

    array-length v2, v0

    invoke-virtual {v1, v0, v2, p1}, Lcom/opera/mini/android/MultiTouchAdapter;->decodeImage$26ab9f51([BIZ)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v0

    return-object v0
.end method

.method public static declared-synchronized Code([B)Lcom/opera/mini/generic/LogicalDocument;
    .locals 9

    const-class v8, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v8

    :try_start_0
    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->am:I

    add-int/lit8 v1, v0, 0x1

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->am:I

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(I)V

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, p0}, Lcom/opera/mini/generic/LogicalDocument;->Code([B)V

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v1, 0x0

    const/16 v2, 0x20

    invoke-virtual {v0, p0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->Z([BII)V

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-direct/range {v0 .. v7}, Lcom/opera/mini/generic/LogicalDocument;-><init>(IIIIIII)V

    const/4 v1, 0x0

    invoke-virtual {v0, p0, v1}, Lcom/opera/mini/generic/LogicalDocument;->I([BI)V

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    array-length v2, v2

    invoke-virtual {v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->Z([BI)V

    const/4 v1, 0x0

    invoke-virtual {v0, p0, v1}, Lcom/opera/mini/generic/LogicalDocument;->J([BI)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v8

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit v8

    throw v0
.end method

.method public static Code([BI)Ljava/lang/String;
    .locals 5

    const/16 v4, 0x10

    const/16 v0, 0x80

    invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const/4 v2, 0x0

    :goto_0
    add-int/lit8 v3, v0, 0x0

    if-ge v2, v3, :cond_1

    aget-byte v3, p0, v2

    and-int/lit16 v3, v3, 0xff

    if-ge v3, v4, :cond_0

    const/16 v3, 0x30

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_0
    aget-byte v3, p0, v2

    and-int/lit16 v3, v3, 0xff

    invoke-static {v3, v4}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static Code([BII[I)Ljava/lang/String;
    .locals 9

    const/16 v7, 0x80

    const/4 v6, 0x0

    const/4 v5, 0x0

    invoke-static {p0, p1}, Lcom/opera/mini/generic/LogicalDocument;->b([BI)I

    move-result v0

    add-int/lit8 v1, p1, 0x2

    if-ge p2, v0, :cond_0

    move-object v0, v5

    :goto_0
    return-object v0

    :cond_0
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2, v0}, Ljava/lang/StringBuffer;-><init>(I)V

    :goto_1
    add-int/lit8 v3, v0, -0x1

    if-lez v0, :cond_5

    aget-byte v0, p0, v1

    and-int/lit16 v0, v0, 0xf0

    shr-int/lit8 v0, v0, 0x4

    packed-switch v0, :pswitch_data_0

    aget-byte v0, p0, v1

    and-int/lit8 v0, v0, 0x7f

    int-to-char v0, v0

    move v8, v3

    move v3, v1

    move v1, v8

    :goto_2
    invoke-virtual {v2, v0}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v3, 0x1

    move v8, v1

    move v1, v0

    move v0, v8

    goto :goto_1

    :pswitch_0
    move-object v0, v5

    goto :goto_0

    :pswitch_1
    aget-byte v0, p0, v1

    and-int/lit8 v0, v0, 0xf

    shl-int/lit8 v0, v0, 0xc

    int-to-char v0, v0

    add-int/lit8 v4, v3, -0x1

    if-eqz v3, :cond_1

    add-int/lit8 v1, v1, 0x1

    aget-byte v3, p0, v1

    and-int/lit16 v3, v3, 0xc0

    if-eq v3, v7, :cond_2

    :cond_1
    move-object v0, v5

    goto :goto_0

    :cond_2
    move v3, v1

    move v1, v4

    :goto_3
    aget-byte v4, p0, v3

    and-int/lit8 v4, v4, 0x3f

    shl-int/lit8 v4, v4, 0x6

    or-int/2addr v0, v4

    int-to-char v0, v0

    add-int/lit8 v4, v1, -0x1

    if-eqz v1, :cond_3

    add-int/lit8 v1, v3, 0x1

    aget-byte v3, p0, v1

    and-int/lit16 v3, v3, 0xc0

    if-eq v3, v7, :cond_4

    :cond_3
    move-object v0, v5

    goto :goto_0

    :cond_4
    aget-byte v3, p0, v1

    and-int/lit8 v3, v3, 0x3f

    or-int/2addr v0, v3

    int-to-char v0, v0

    move v3, v1

    move v1, v4

    goto :goto_2

    :cond_5
    aput v1, p3, v6

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :pswitch_2
    move v0, v6

    move v8, v3

    move v3, v1

    move v1, v8

    goto :goto_3

    nop

    :pswitch_data_0
    .packed-switch 0x8
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_2
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public static Code(I)V
    .locals 5

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->f:Z

    if-eqz v0, :cond_0

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->g:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->i:I

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->j:I

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->i:I

    sub-int/2addr v1, v2

    mul-int/2addr v1, p0

    div-int/lit8 v1, v1, 0x64

    add-int/2addr v0, v1

    const/16 v1, 0x3e8

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->k:I

    if-eq v0, v1, :cond_0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->k:I

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v1, 0x0

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->b()I

    move-result v2

    sget-object v3, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v3}, Lcom/opera/mini/generic/LogicalDocument;->aa()I

    move-result v3

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->s:I

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->I(IIII)V

    goto :goto_0
.end method

.method public static Code(II)V
    .locals 1

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->f:Z

    if-eqz v0, :cond_0

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->g:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    mul-int/lit8 v0, p0, 0xa

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->i:I

    mul-int/lit8 v0, p1, 0xa

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->j:I

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(I)V

    goto :goto_0
.end method

.method public static Code(ILjava/lang/String;Z)V
    .locals 1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    aget-object v0, v0, p0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    aget-object v0, v0, p0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    aput-object p1, v0, p0

    const/4 v0, 0x1

    if-ne p0, v0, :cond_1

    if-eqz p2, :cond_1

    const-string v0, "mc"

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    :cond_1
    return-void
.end method

.method public static Code(I[B)V
    .locals 3

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    const-string v1, "splash"

    invoke-virtual {v0, v1}, Ld;->J(Ljava/lang/String;)V

    const/4 v0, 0x4

    new-array v0, v0, [B

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->J(I[BI)V

    :try_start_0
    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    const-string v2, "splash"

    invoke-virtual {v1, v2, v0}, Ld;->Code(Ljava/lang/String;[B)I

    sput p0, Lcom/opera/mini/android/AndroidNativeImage;->t:I

    invoke-static {p1}, Lcom/opera/mini/generic/LogicalDocument;->B([B)Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    const-string v1, "splash"

    invoke-virtual {v0, v1, p1}, Ld;->Code(Ljava/lang/String;[B)I
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public static Code(LCode;)V
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    iput-object v1, p0, LCode;->b:LCode;

    sput-object p0, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public static Code(LCode;Z)V
    .locals 3

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    iget-boolean v1, p0, LCode;->f:Z

    if-nez v1, :cond_0

    const/4 v1, 0x0

    invoke-virtual {p0, v1}, LCode;->J(I)V

    iget-object v1, p0, LCode;->a:Lcom/opera/mini/android/AndroidNativeImage;

    if-eqz v1, :cond_3

    invoke-virtual {v1}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v2

    if-eqz v2, :cond_2

    const/4 v2, 0x1

    iput-boolean v2, v1, Lcom/opera/mini/android/AndroidNativeImage;->cq:Z

    if-eqz p1, :cond_1

    const/4 v1, 0x7

    :goto_0
    iput v1, p0, LCode;->I:I

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;)V

    :cond_0
    :goto_1
    monitor-exit v0

    return-void

    :cond_1
    const/4 v1, 0x6

    goto :goto_0

    :cond_2
    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto :goto_1

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    :cond_3
    :try_start_1
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    invoke-virtual {v1, p0}, LCode;->Code(LCode;)LCode;

    move-result-object v1

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1
.end method

.method public static declared-synchronized Code(Lcom/opera/mini/generic/GraphicsAdapter;)V
    .locals 11

    const-class v10, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v10

    :try_start_0
    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->f:Z

    if-eqz v0, :cond_0

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->g:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    monitor-exit v10

    return-void

    :cond_1
    :try_start_1
    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->aa()I

    move-result v3

    const/4 v1, 0x0

    const/4 v2, 0x0

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->ab()I

    move-result v4

    sget v5, Lcom/opera/mini/android/AndroidNativeImage;->J:I

    move-object v0, p0

    invoke-interface/range {v0 .. v5}, Lcom/opera/mini/generic/GraphicsAdapter;->fillRect(IIIII)V

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    if-eqz v0, :cond_2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    invoke-virtual {v1}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v1

    sub-int v1, v3, v1

    shr-int/lit8 v1, v1, 0x1

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->C:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v4, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v4}, Lcom/opera/mini/generic/LogicalDocument;->ab()I

    move-result v4

    invoke-virtual {v2, v4}, Lcom/opera/mini/generic/LogicalDocument;->x(I)I

    move-result v2

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->n:Lcom/opera/mini/generic/ImageAdapter;

    invoke-virtual {v4}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v4

    shr-int/lit8 v4, v4, 0x1

    sub-int/2addr v2, v4

    invoke-interface {p0, v0, v1, v2}, Lcom/opera/mini/generic/GraphicsAdapter;->drawImage(Lcom/opera/mini/generic/ImageAdapter;II)V

    :cond_2
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    if-eqz v0, :cond_3

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    invoke-virtual {v1}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v1

    sub-int v1, v3, v1

    shr-int/lit8 v1, v1, 0x1

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->a:Lcom/opera/mini/generic/LogicalDocument;

    iget-boolean v2, v2, Lcom/opera/mini/generic/LogicalDocument;->am:Z

    if-eqz v2, :cond_4

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->a:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v4, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v4}, Lcom/opera/mini/generic/LogicalDocument;->ab()I

    move-result v4

    invoke-virtual {v2, v4}, Lcom/opera/mini/generic/LogicalDocument;->x(I)I

    move-result v2

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    invoke-virtual {v4}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v4

    shr-int/lit8 v4, v4, 0x1

    sub-int/2addr v2, v4

    :goto_1
    invoke-interface {p0, v0, v1, v2}, Lcom/opera/mini/generic/GraphicsAdapter;->drawImage(Lcom/opera/mini/generic/ImageAdapter;II)V

    :cond_3
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->d:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v3}, Lcom/opera/mini/generic/LogicalDocument;->x(I)I

    move-result v0

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1}, Lcom/opera/mini/generic/LogicalDocument;->aa()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v8

    sub-int v0, v3, v8

    shr-int/lit8 v6, v0, 0x1

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->p:Lcom/opera/mini/generic/ImageAdapter;

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->b()I

    move-result v7

    sget v9, Lcom/opera/mini/android/AndroidNativeImage;->s:I

    move-object v4, p0

    invoke-static/range {v4 .. v9}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Lcom/opera/mini/generic/GraphicsAdapter;Lcom/opera/mini/generic/ImageAdapter;IIII)V

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->q:Lcom/opera/mini/generic/ImageAdapter;

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->b()I

    move-result v7

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->k:I

    mul-int/2addr v0, v8

    div-int/lit16 v8, v0, 0x3e8

    sget v9, Lcom/opera/mini/android/AndroidNativeImage;->s:I

    move-object v4, p0

    invoke-static/range {v4 .. v9}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Lcom/opera/mini/generic/GraphicsAdapter;Lcom/opera/mini/generic/ImageAdapter;IIII)V

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->h:Ljava/lang/String;

    if-eqz v0, :cond_0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->h:Ljava/lang/String;

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->l:I

    sub-int v0, v3, v0

    shr-int/lit8 v2, v0, 0x1

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->a()I

    move-result v3

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->m:Lcom/opera/mini/generic/FontAdapter;

    sget v5, Lcom/opera/mini/android/AndroidNativeImage;->B:I

    move-object v0, p0

    invoke-interface/range {v0 .. v5}, Lcom/opera/mini/generic/GraphicsAdapter;->drawString(Ljava/lang/String;IILcom/opera/mini/generic/FontAdapter;I)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto/16 :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v10

    throw v0

    :cond_4
    :try_start_2
    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->b()I

    move-result v2

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->a:Lcom/opera/mini/generic/LogicalDocument;

    iget v4, v4, Lcom/opera/mini/generic/LogicalDocument;->ar:I

    sub-int/2addr v2, v4

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->o:Lcom/opera/mini/generic/ImageAdapter;

    invoke-virtual {v4}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-result v4

    sub-int/2addr v2, v4

    goto :goto_1
.end method

.method public static Code(Lcom/opera/mini/generic/GraphicsAdapter;Lcom/opera/mini/generic/ImageAdapter;IIII)V
    .locals 20

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v2

    move/from16 v0, p5

    move v1, v2

    if-le v0, v1, :cond_0

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v2

    sub-int p5, p5, v2

    shr-int/lit8 p5, p5, 0x1

    add-int p3, p3, p5

    move/from16 v9, p3

    :goto_0
    sget-object p3, Lcom/opera/mini/android/AndroidNativeImage;->b:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result p5

    move-object/from16 v0, p3

    move/from16 v1, p5

    invoke-virtual {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->x(I)I

    move-result p3

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result p5

    div-int/lit8 p5, p5, 0x3

    shr-int/lit8 v2, p4, 0x1

    move v0, v2

    move/from16 v1, p3

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result p3

    move/from16 v0, p5

    move/from16 v1, p3

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v6

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v7

    move-object/from16 v2, p0

    move-object/from16 v3, p1

    move/from16 v8, p2

    invoke-interface/range {v2 .. v9}, Lcom/opera/mini/generic/GraphicsAdapter;->drawRegion(Lcom/opera/mini/generic/ImageAdapter;IIIIII)V

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result p3

    sub-int v4, p3, v6

    const/4 v5, 0x0

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v7

    add-int p3, p2, p4

    sub-int v8, p3, v6

    move-object/from16 v2, p0

    move-object/from16 v3, p1

    invoke-interface/range {v2 .. v9}, Lcom/opera/mini/generic/GraphicsAdapter;->drawRegion(Lcom/opera/mini/generic/ImageAdapter;IIIIII)V

    const/4 v13, 0x0

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result p3

    shl-int/lit8 p5, v6, 0x1

    sub-int v14, p3, p5

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v15

    add-int v16, p2, v6

    shl-int/lit8 p2, v6, 0x1

    sub-int v18, p4, p2

    invoke-virtual/range {p1 .. p1}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v19

    move-object/from16 v10, p0

    move-object/from16 v11, p1

    move v12, v6

    move/from16 v17, v9

    invoke-interface/range {v10 .. v19}, Lcom/opera/mini/generic/GraphicsAdapter;->drawImageRegionTiled(Lcom/opera/mini/generic/ImageAdapter;IIIIIIII)V

    return-void

    :cond_0
    move/from16 v9, p3

    goto :goto_0
.end method

.method public static Code(Lcom/opera/mini/generic/LogicalDocument;)V
    .locals 1

    :try_start_0
    invoke-virtual {p0}, Lcom/opera/mini/generic/LogicalDocument;->Code()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_0
    return-void

    :catchall_0
    move-exception v0

    goto :goto_0
.end method

.method public static Code(Le;III)V
    .locals 3

    invoke-virtual {p0}, Le;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x8

    invoke-virtual {p0, v0}, Le;->Code(I)V

    invoke-virtual {p0}, Le;->Code()[B

    move-result-object v0

    invoke-virtual {p0}, Le;->size()I

    move-result v1

    const/16 v2, 0x8

    sub-int/2addr v1, v2

    invoke-static {v0, v1, p1, p2, p3}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BIIII)V

    return-void
.end method

.method public static declared-synchronized Code(Ljava/io/DataInputStream;I)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v4, 0x0

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    :try_start_0
    invoke-virtual {p0}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readByte()B

    move-result v2

    sput v2, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readByte()B

    move-result v2

    sput v2, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readBoolean()Z

    move-result v2

    sput-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readBoolean()Z

    move-result v2

    sput-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->ca:Z

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readLong()J

    move-result-wide v2

    sput-wide v2, Lcom/opera/mini/android/AndroidNativeImage;->ct:J

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    invoke-virtual {p0, v2}, Ljava/io/DataInputStream;->readFully([B)V

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readUnsignedByte()I

    move-result v2

    new-array v2, v2, [B

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    invoke-virtual {p0, v2}, Ljava/io/DataInputStream;->readFully([B)V

    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/DataInputStream;)[I

    move-result-object v2

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cu:[I

    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/DataInputStream;)[I

    move-result-object v2

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    const/4 v2, 0x4

    if-lt p1, v2, :cond_1

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readByte()B

    move-result v2

    :goto_0
    const/4 v3, 0x0

    invoke-static {v2, v3}, Lcom/opera/mini/android/AndroidNativeImage;->I(IZ)V

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->d(Ljava/lang/String;)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->bS:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    monitor-exit v0

    return-void

    :cond_1
    move v2, v4

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static declared-synchronized Code(Ljava/io/DataOutputStream;)V
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v5, 0x0

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    :try_start_0
    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->q()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    invoke-virtual {p0, v1}, Ljava/io/DataOutputStream;->write(I)V

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    invoke-virtual {p0, v1}, Ljava/io/DataOutputStream;->write(I)V

    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    invoke-virtual {p0, v1}, Ljava/io/DataOutputStream;->writeBoolean(Z)V

    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->ca:Z

    invoke-virtual {p0, v1}, Ljava/io/DataOutputStream;->writeBoolean(Z)V

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cu:[I

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    const/4 v4, 0x1

    aget-object v3, v3, v4

    if-nez v3, :cond_0

    move-object v1, v5

    move-object v2, v5

    :goto_0
    sget-wide v3, Lcom/opera/mini/android/AndroidNativeImage;->ct:J

    invoke-virtual {p0, v3, v4}, Ljava/io/DataOutputStream;->writeLong(J)V

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    invoke-virtual {p0, v3}, Ljava/io/DataOutputStream;->write([B)V

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    array-length v3, v3

    invoke-virtual {p0, v3}, Ljava/io/DataOutputStream;->write(I)V

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    invoke-virtual {p0, v3}, Ljava/io/DataOutputStream;->write([B)V

    invoke-static {p0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/DataOutputStream;[I)V

    invoke-static {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/DataOutputStream;[I)V

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bQ:I

    invoke-virtual {p0, v1}, Ljava/io/DataOutputStream;->writeByte(I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    :cond_0
    move-object v6, v2

    move-object v2, v1

    move-object v1, v6

    goto :goto_0
.end method

.method public static Code(Ljava/io/DataOutputStream;[I)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    if-eqz p1, :cond_0

    array-length v0, p1

    invoke-virtual {p0, v0}, Ljava/io/DataOutputStream;->writeShort(I)V

    invoke-static {p1}, Lcom/opera/mini/android/AndroidNativeImage;->Code([I)[B

    move-result-object v0

    invoke-virtual {p0, v0}, Ljava/io/DataOutputStream;->write([B)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Ljava/io/DataOutputStream;->writeShort(I)V

    goto :goto_0
.end method

.method public static Code(Ljava/io/InputStream;)V
    .locals 1

    :try_start_0
    invoke-virtual {p0}, Ljava/io/InputStream;->close()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_0
    return-void

    :catchall_0
    move-exception v0

    goto :goto_0
.end method

.method public static Code(Ljava/io/InputStream;I)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    move v0, p1

    :goto_0
    if-lez v0, :cond_0

    int-to-long v1, v0

    int-to-long v3, v0

    invoke-virtual {p0, v3, v4}, Ljava/io/InputStream;->skip(J)J

    move-result-wide v3

    sub-long v0, v1, v3

    long-to-int v0, v0

    goto :goto_0

    :cond_0
    return-void
.end method

.method public static Code(Ljava/io/OutputStream;)V
    .locals 1

    :try_start_0
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_0
    return-void

    :catchall_0
    move-exception v0

    goto :goto_0
.end method

.method public static Code(Ljava/lang/Object;)V
    .locals 1

    monitor-enter p0

    :try_start_0
    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public static Code(Ljava/lang/Object;I)V
    .locals 2

    monitor-enter p0

    int-to-long v0, p1

    :try_start_0
    invoke-virtual {p0, v0, v1}, Ljava/lang/Object;->wait(J)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    move-object v0, p0

    :goto_0
    :try_start_1
    monitor-exit v0

    return-void

    :catch_0
    move-exception v0

    move-object v0, p0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0
.end method

.method public static Code(Ljava/lang/Runnable;)V
    .locals 1

    new-instance v0, Ljava/lang/Thread;

    invoke-direct {v0, p0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method public static Code(Ljava/lang/String;)V
    .locals 5

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->f:Z

    if-eqz v0, :cond_0

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->g:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sput-object p0, Lcom/opera/mini/android/AndroidNativeImage;->h:Ljava/lang/String;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->m:Lcom/opera/mini/generic/FontAdapter;

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->h:Ljava/lang/String;

    invoke-interface {v0, v1}, Lcom/opera/mini/generic/FontAdapter;->stringWidth(Ljava/lang/String;)I

    move-result v0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->l:I

    :try_start_0
    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v1, 0x0

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->a()I

    move-result v2

    sget-object v3, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v3}, Lcom/opera/mini/generic/LogicalDocument;->aa()I

    move-result v3

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->m:Lcom/opera/mini/generic/FontAdapter;

    invoke-interface {v4}, Lcom/opera/mini/generic/FontAdapter;->getHeight()I

    move-result v4

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->I(IIII)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    goto :goto_0
.end method

.method public static declared-synchronized Code(Z)V
    .locals 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    if-nez p0, :cond_1

    :try_start_0
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->an:[B

    if-eqz v1, :cond_1

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->an:[B

    array-length v1, v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/16 v2, 0x20

    if-ne v1, v2, :cond_1

    :cond_0
    :goto_0
    monitor-exit v0

    return-void

    :cond_1
    :try_start_1
    new-instance v1, Lcom/opera/mini/generic/LogicalDocument;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Lcom/opera/mini/generic/LogicalDocument;-><init>(I)V

    const/16 v2, 0xd

    new-array v2, v2, [C

    fill-array-data v2, :array_0

    new-instance v3, Le;

    const/16 v4, 0x20

    invoke-direct {v3, v4}, Le;-><init>(I)V

    sput-object v3, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    const v3, 0x28770

    sput v3, Lcom/opera/mini/android/AndroidNativeImage;->ax:I

    if-eqz p0, :cond_2

    sget-object v3, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v3}, Lcom/opera/mini/generic/LogicalDocument;->aI()V

    sget-object v3, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->ax:I

    invoke-virtual {v3, v4}, Lcom/opera/bream/vm/BreamVM;->ipush(I)V

    sget-object v3, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v4, 0x0

    const/16 v5, 0x3f

    invoke-virtual {v3, v4, v5}, Lcom/opera/mini/generic/LogicalDocument;->d(II)V

    :cond_2
    const/4 v3, 0x0

    :goto_1
    const/4 v4, 0x6

    if-ge v3, v4, :cond_4

    const/4 v4, 0x0

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v5, v5, v3

    invoke-interface {v5}, Lcom/opera/mini/generic/FontAdapter;->Code()I

    move-result v5

    invoke-static {v3}, Lcom/opera/mini/android/AndroidNativeImage;->b(I)I

    move-result v6

    sub-int/2addr v5, v6

    sget-object v6, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v6, v6, v3

    invoke-interface {v6}, Lcom/opera/mini/generic/FontAdapter;->I()I

    move-result v6

    sub-int/2addr v5, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->max(II)I

    move-result v4

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v5, v5, v3

    invoke-interface {v5}, Lcom/opera/mini/generic/FontAdapter;->Code()I

    move-result v5

    sub-int v4, v5, v4

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v5, v4}, Le;->write(I)V

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v5, v5, v3

    invoke-interface {v5}, Lcom/opera/mini/generic/FontAdapter;->Code()I

    move-result v5

    invoke-virtual {v4, v5}, Le;->write(I)V

    const/4 v4, 0x0

    :goto_2
    array-length v5, v2

    if-ge v4, v5, :cond_3

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    aget-char v6, v2, v4

    invoke-static {v3, v6}, Lcom/opera/mini/android/AndroidNativeImage;->Code(IC)I

    move-result v6

    invoke-virtual {v5, v6}, Le;->write(I)V

    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    :cond_3
    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v4}, Le;->Code()[B

    move-result-object v4

    const/4 v5, 0x0

    sget-object v6, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v6}, Le;->size()I

    move-result v6

    invoke-virtual {v1, v4, v5, v6}, Lcom/opera/mini/generic/LogicalDocument;->Z([BII)V

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v4}, Le;->reset()V

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_4
    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    const/16 v3, 0x20

    invoke-virtual {v2, v3}, Le;->Code(I)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v2}, Le;->Code()[B

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->Code([B)V

    if-eqz p0, :cond_e

    const/4 v1, 0x0

    :goto_3
    const/4 v2, 0x6

    if-ge v1, v2, :cond_e

    const/4 v2, 0x0

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v3, v3, v1

    invoke-interface {v3}, Lcom/opera/mini/generic/FontAdapter;->Code()I

    move-result v3

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->b(I)I

    move-result v4

    sub-int/2addr v3, v4

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v4, v4, v1

    invoke-interface {v4}, Lcom/opera/mini/generic/FontAdapter;->I()I

    move-result v4

    sub-int/2addr v3, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I

    move-result v2

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v3, v3, v1

    invoke-interface {v3}, Lcom/opera/mini/generic/FontAdapter;->Code()I

    move-result v3

    sub-int/2addr v3, v2

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v4, v1}, Le;->write(I)V

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v4, v3}, Le;->write(I)V

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v3, v2}, Le;->write(I)V

    const/4 v2, 0x1

    const/4 v3, 0x0

    sput v3, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    const/4 v3, 0x4

    sput v3, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    const/4 v3, 0x1

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    const/4 v5, 0x1

    sub-int/2addr v4, v5

    shl-int/2addr v3, v4

    sput v3, Lcom/opera/mini/android/AndroidNativeImage;->aD:I

    const/4 v3, 0x0

    const v4, 0x7fffffff

    const/4 v5, 0x0

    const/16 v6, 0x11

    new-array v6, v6, [I

    fill-array-data v6, :array_1

    const/4 v7, 0x0

    move v12, v7

    move v7, v2

    move v2, v12

    move v13, v3

    move v3, v5

    move v5, v13

    :goto_4
    const v8, 0xffff

    if-gt v7, v8, :cond_b

    add-int/lit8 v8, v7, 0x1

    int-to-char v7, v7

    invoke-static {v1, v7}, Lcom/opera/mini/android/AndroidNativeImage;->Code(IC)I

    move-result v7

    sget v9, Lcom/opera/mini/android/AndroidNativeImage;->ay:I

    add-int/lit8 v9, v9, 0x1

    sput v9, Lcom/opera/mini/android/AndroidNativeImage;->ay:I

    sub-int v5, v7, v5

    invoke-static {v5}, Ljava/lang/Math;->abs(I)I

    move-result v9

    if-ne v5, v4, :cond_5

    const/4 v10, 0x1

    sub-int v10, v8, v10

    aget v11, v6, v2

    if-eq v10, v11, :cond_5

    add-int/lit8 v3, v3, 0x1

    move v5, v7

    move v7, v8

    goto :goto_4

    :cond_5
    if-lez v3, :cond_7

    const/4 v10, 0x4

    if-ge v3, v10, :cond_8

    const/4 v10, 0x0

    :goto_5
    if-ge v10, v3, :cond_6

    sget v11, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    invoke-static {v4, v11}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    add-int/lit8 v10, v10, 0x1

    goto :goto_5

    :cond_6
    const/4 v3, 0x0

    :cond_7
    :goto_6
    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    const/4 v10, 0x1

    sub-int/2addr v4, v10

    ushr-int v4, v9, v4

    if-eqz v4, :cond_a

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aD:I

    sget v10, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    invoke-static {v4, v10}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/4 v4, 0x1

    sget v10, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    shl-int/lit8 v10, v10, 0x1

    invoke-static {v4, v10}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    add-int/lit8 v4, v4, 0x1

    sput v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    const/4 v4, 0x1

    sget v10, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    const/4 v11, 0x1

    sub-int/2addr v10, v11

    shl-int/2addr v4, v10

    sput v4, Lcom/opera/mini/android/AndroidNativeImage;->aD:I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_6

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0

    :cond_8
    :try_start_2
    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aD:I

    sget v10, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    invoke-static {v4, v10}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/4 v4, 0x1

    sget v10, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    shl-int/lit8 v10, v10, 0x1

    const/4 v11, 0x1

    sub-int/2addr v10, v11

    shl-int/2addr v4, v10

    if-gt v3, v4, :cond_9

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    shl-int/lit8 v4, v4, 0x1

    invoke-static {v3, v4}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/4 v3, 0x0

    goto :goto_6

    :cond_9
    const/4 v4, 0x2

    sget v10, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    shl-int/lit8 v10, v10, 0x1

    invoke-static {v4, v10}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/16 v4, 0x10

    invoke-static {v3, v4}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/4 v3, 0x0

    goto :goto_6

    :cond_a
    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    invoke-static {v5, v4}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/4 v4, 0x1

    sub-int v4, v8, v4

    aget v9, v6, v2

    if-ne v4, v9, :cond_f

    const/4 v3, 0x0

    const/4 v4, 0x0

    sget v5, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    invoke-static {v4, v5}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    add-int/lit8 v4, v2, 0x1

    aget v4, v6, v4

    aget v5, v6, v2

    sub-int/2addr v4, v5

    const/4 v5, 0x1

    sub-int/2addr v4, v5

    add-int/lit8 v5, v2, 0x1

    aget v5, v6, v5

    add-int/lit8 v5, v5, 0x1

    add-int/lit8 v2, v2, 0x2

    move v12, v3

    move v3, v2

    move v2, v12

    :goto_7
    move v12, v3

    move v3, v4

    move v4, v2

    move v2, v12

    move v13, v7

    move v7, v5

    move v5, v13

    goto/16 :goto_4

    :cond_b
    if-lez v3, :cond_c

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->aD:I

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    invoke-static {v2, v4}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/4 v2, 0x2

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    shl-int/lit8 v4, v4, 0x1

    invoke-static {v2, v4}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/16 v2, 0x10

    invoke-static {v3, v2}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    :cond_c
    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->aD:I

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    invoke-static {v2, v3}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    const/4 v2, 0x3

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->aC:I

    shl-int/lit8 v3, v3, 0x1

    invoke-static {v2, v3}, Lcom/opera/mini/android/AndroidNativeImage;->I(II)V

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    if-eqz v2, :cond_d

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->aB:I

    const/16 v4, 0x8

    sget v5, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    sub-int/2addr v4, v5

    shl-int/2addr v3, v4

    invoke-virtual {v2, v3}, Le;->write(I)V

    :cond_d
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_3

    :cond_e
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    invoke-virtual {v1}, Le;->toByteArray()[B

    move-result-object v1

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->an:[B

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    if-eqz p0, :cond_0

    sget-object p0, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {p0}, Lcom/opera/mini/generic/LogicalDocument;->aI()V

    sget-object p0, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v1, 0x0

    const/16 v2, 0x40

    invoke-virtual {p0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->d(II)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto/16 :goto_0

    :cond_f
    move v4, v3

    move v3, v2

    move v2, v5

    move v5, v8

    goto :goto_7

    nop

    :array_0
    .array-data 0x2
        0x20t 0x0t
        0x6dt 0x0t
        0x69t 0x0t
        0x30t 0x0t
        0x58t 0x0t
        0xe5t 0x0t
        0x27t 0x6t
        0xdft 0x5t
        0xa8t 0x3t
        0x41t 0x30t
        0x4et 0x4t
        0x0t 0x4et
        0xft 0x33t
    .end array-data

    nop

    :array_1
    .array-data 0x4
        0x1t 0x0t 0x0t 0x0t
        0x1ft 0x0t 0x0t 0x0t
        0xfbt 0x7t 0x0t 0x0t
        0xfft 0x8t 0x0t 0x0t
        0x7dt 0x1bt 0x0t 0x0t
        0xfft 0x1ct 0x0t 0x0t
        0x41t 0x30t 0x0t 0x0t
        0xfft 0x30t 0x0t 0x0t
        0x0t 0x34t 0x0t 0x0t
        0xbft 0x4dt 0x0t 0x0t
        0x0t 0x4et 0x0t 0x0t
        0xbft 0x9ft 0x0t 0x0t
        0xc7t 0xa4t 0x0t 0x0t
        0xfft 0xa6t 0x0t 0x0t
        0x0t 0xd8t 0x0t 0x0t
        0xfft 0xfat 0x0t 0x0t
        0x0t 0x0t 0x1t 0x0t
    .end array-data
.end method

.method public static Code([BIIII)V
    .locals 2

    add-int/lit8 v0, p1, 0x4

    add-int/lit8 v0, v0, 0x0

    add-int/lit8 v1, p4, 0x2

    shr-int/lit8 v1, v1, 0x8

    int-to-byte v1, v1

    aput-byte v1, p0, v0

    add-int/lit8 v0, p1, 0x4

    add-int/lit8 v0, v0, 0x1

    add-int/lit8 v1, p4, 0x2

    int-to-byte v1, v1

    aput-byte v1, p0, v0

    add-int/lit8 v0, p1, 0x4

    add-int/lit8 v0, v0, 0x2

    int-to-byte v1, p2

    aput-byte v1, p0, v0

    add-int/lit8 v0, p1, 0x4

    add-int/lit8 v0, v0, 0x3

    int-to-byte v1, p3

    aput-byte v1, p0, v0

    return-void
.end method

.method public static Code(C)Z
    .locals 2

    const v0, 0xf800

    and-int/2addr v0, p0

    const v1, 0xd800

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static Code(IIIIIIII)Z
    .locals 1

    add-int v0, p4, p6

    if-ge p0, v0, :cond_0

    add-int v0, p0, p2

    if-le v0, p4, :cond_0

    add-int v0, p5, p7

    if-ge p1, v0, :cond_0

    add-int v0, p1, p3

    if-le v0, p5, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static Code(Lcom/opera/mini/android/AndroidNativeImage;I)Z
    .locals 8

    const/4 v7, 0x0

    const/4 v6, -0x1

    const/4 v5, 0x1

    const/4 v2, 0x0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bV:Z

    if-nez v1, :cond_0

    monitor-exit v0

    move v0, v2

    :goto_0
    return v0

    :cond_0
    const/4 v1, 0x0

    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bV:Z

    const/4 v1, 0x1

    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bW:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :try_start_1
    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    array-length v2, v2

    sub-int/2addr v2, v5

    if-lt v1, v2, :cond_1

    const/4 v1, -0x1

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    :cond_1
    move-object v1, p0

    :cond_2
    :goto_1
    sget-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->bY:Z

    if-eqz v2, :cond_3

    sget-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->ca:Z

    if-nez v2, :cond_3

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    if-le v2, v6, :cond_3

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    sget v3, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    aget-object v2, v2, v3

    const-string v3, "http://"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    const/4 v2, 0x1

    sput-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->ca:Z

    :goto_2
    const/4 v2, 0x0

    sput-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->bY:Z

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    array-length v3, v3

    if-lt v2, v3, :cond_4

    const/4 v1, 0x0

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->h(I)V

    const/4 v1, -0x1

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    const-string v1, "md"

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 v1, 0x0

    :try_start_2
    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bW:Z

    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    move v0, v5

    goto :goto_0

    :cond_3
    const/4 v2, 0x0

    :try_start_3
    sput-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->ca:Z

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    add-int/lit8 v2, v2, 0x1

    sput v2, Lcom/opera/mini/android/AndroidNativeImage;->bT:I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_2

    :catchall_0
    move-exception v1

    const/4 v2, 0x0

    :try_start_4
    sput-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->bW:Z

    throw v1

    :catchall_1
    move-exception v1

    monitor-exit v0
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    throw v1

    :cond_4
    :try_start_5
    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    sget v4, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    aget-object v3, v3, v4

    const-string v4, "socket://"

    invoke-virtual {v3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_5

    const/4 v3, 0x2

    if-eq v2, v3, :cond_2

    :goto_3
    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    sput v2, Lcom/opera/mini/android/AndroidNativeImage;->bS:I

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V

    const-string v2, "md"

    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    if-nez v1, :cond_6

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1, p1}, Lcom/opera/mini/generic/LogicalDocument;->j(I)Lcom/opera/mini/android/AndroidNativeImage;

    move-result-object v1

    :goto_4
    sget-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-eqz v2, :cond_7

    iget-boolean v2, v1, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    if-nez v2, :cond_7

    invoke-virtual {v1}, Lcom/opera/mini/android/AndroidNativeImage;->p()Z

    move-result v2

    if-nez v2, :cond_7

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    const/16 v3, 0x3e8

    invoke-static {v2, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;I)V

    goto :goto_4

    :cond_5
    if-eq v2, v5, :cond_2

    goto :goto_3

    :cond_6
    const/4 v2, 0x0

    iput-object v2, v1, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    const/4 v2, 0x0

    iput-object v2, v1, Lcom/opera/mini/android/AndroidNativeImage;->cl:Lf;

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->bS:I

    iput v2, v1, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    invoke-virtual {v2, v1, p1}, Ljava/util/Vector;->setElementAt(Ljava/lang/Object;I)V

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Runnable;)V

    goto :goto_4

    :cond_7
    sget-boolean v2, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-nez v2, :cond_8

    const/4 v1, 0x0

    :try_start_6
    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bW:Z

    monitor-exit v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_1

    move v0, v5

    goto/16 :goto_0

    :cond_8
    const/4 v2, 0x0

    :try_start_7
    invoke-virtual {v1, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    move-object v1, v7

    goto/16 :goto_1
.end method

.method public static Code(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 11

    const/16 v10, 0x2a

    const/4 v9, 0x1

    const/4 v8, -0x1

    const/4 v7, 0x0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_0

    if-nez v0, :cond_0

    move v0, v9

    :goto_0
    return v0

    :cond_0
    if-nez v1, :cond_6

    move v0, v7

    goto :goto_0

    :cond_1
    move v3, v2

    move v2, v4

    :goto_1
    add-int/lit8 v4, v2, 0x1

    invoke-virtual {p0, v10, v4}, Ljava/lang/String;->indexOf(II)I

    move-result v4

    if-eq v4, v8, :cond_2

    add-int/lit8 v5, v2, 0x1

    invoke-virtual {p0, v5, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    :goto_2
    invoke-virtual {p1, v5, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v6

    if-ne v6, v8, :cond_3

    move v0, v7

    goto :goto_0

    :cond_2
    add-int/lit8 v5, v2, 0x1

    invoke-virtual {p0, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v5

    goto :goto_2

    :cond_3
    if-nez v3, :cond_4

    if-lez v6, :cond_4

    invoke-virtual {p0, v7}, Ljava/lang/String;->charAt(I)C

    move-result v3

    if-eq v3, v10, :cond_4

    move v0, v7

    goto :goto_0

    :cond_4
    sub-int v3, v1, v9

    if-ne v2, v3, :cond_5

    move v0, v9

    goto :goto_0

    :cond_5
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v2

    add-int/2addr v2, v6

    if-lt v2, v0, :cond_1

    if-ne v4, v8, :cond_1

    move v0, v9

    goto :goto_0

    :cond_6
    move v2, v8

    move v3, v7

    goto :goto_1
.end method

.method public static Code([B[B)Z
    .locals 4

    const/4 v3, 0x0

    array-length v0, p0

    array-length v1, p1

    if-eq v0, v1, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    move v0, v3

    :goto_1
    array-length v1, p0

    if-ge v0, v1, :cond_2

    aget-byte v1, p0, v0

    aget-byte v2, p1, v0

    if-eq v1, v2, :cond_1

    move v0, v3

    goto :goto_0

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public static Code([C)Z
    .locals 14

    new-instance v9, Ljava/lang/String;

    invoke-direct {v9, p0}, Ljava/lang/String;-><init>([C)V

    const/4 v0, 0x0

    aget-char p0, p0, v0

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->ap()Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    const/16 v1, 0x20

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Z(III)Lcom/opera/mini/generic/FontAdapter;

    move-result-object v10

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->ao()Lcom/opera/mini/android/MultiTouchAdapter;

    move-result-object v0

    invoke-interface {v10, p0}, Lcom/opera/mini/generic/FontAdapter;->charWidth(C)I

    move-result v1

    const/4 v2, 0x1

    invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I

    move-result v1

    invoke-interface {v10}, Lcom/opera/mini/generic/FontAdapter;->getHeight()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/opera/mini/android/MultiTouchAdapter;->createImage(II)Lcom/opera/mini/generic/ImageAdapter;

    move-result-object v11

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getGraphics()Lcom/opera/mini/generic/GraphicsAdapter;

    move-result-object v0

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v1

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v2

    mul-int/2addr v1, v2

    new-array v12, v1, [I

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v1

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v2

    mul-int/2addr v1, v2

    new-array v13, v1, [I

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v3

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v4

    const v5, 0xffffff

    invoke-interface/range {v0 .. v5}, Lcom/opera/mini/generic/GraphicsAdapter;->fillRect(IIIII)V

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v5, 0x0

    move v1, p0

    move-object v4, v10

    invoke-interface/range {v0 .. v5}, Lcom/opera/mini/generic/GraphicsAdapter;->drawChar(CIILcom/opera/mini/generic/FontAdapter;I)V

    const/4 v3, 0x0

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v4

    const/4 v5, 0x0

    const/4 v6, 0x0

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v7

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v8

    move-object v1, v11

    move-object v2, v12

    invoke-virtual/range {v1 .. v8}, Lcom/opera/mini/generic/ImageAdapter;->getRGB([IIIIIII)V

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v3

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v4

    const v5, 0xffffff

    invoke-interface/range {v0 .. v5}, Lcom/opera/mini/generic/GraphicsAdapter;->fillRect(IIIII)V

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v5, 0x0

    move-object v1, v9

    move-object v4, v10

    invoke-interface/range {v0 .. v5}, Lcom/opera/mini/generic/GraphicsAdapter;->drawString(Ljava/lang/String;IILcom/opera/mini/generic/FontAdapter;I)V

    const/4 v2, 0x0

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v3

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getWidth()I

    move-result v6

    invoke-virtual {v11}, Lcom/opera/mini/generic/ImageAdapter;->getHeight()I

    move-result v7

    move-object v0, v11

    move-object v1, v13

    invoke-virtual/range {v0 .. v7}, Lcom/opera/mini/generic/ImageAdapter;->getRGB([IIIIIII)V

    const/4 p0, 0x0

    const/4 v0, 0x0

    :goto_0
    array-length v1, v13

    if-ge v0, v1, :cond_0

    aget v1, v13, v0

    aget v2, v12, v0

    if-eq v1, v2, :cond_1

    const/4 p0, 0x1

    :cond_0
    return p0

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public static Code([I)[B
    .locals 5

    array-length v0, p0

    shl-int/lit8 v0, v0, 0x2

    new-array v0, v0, [B

    array-length v1, v0

    :goto_0
    add-int/lit8 v1, v1, -0x1

    if-ltz v1, :cond_0

    shr-int/lit8 v2, v1, 0x2

    aget v2, p0, v2

    const/4 v3, 0x3

    rem-int/lit8 v4, v1, 0x4

    sub-int/2addr v3, v4

    mul-int/lit8 v3, v3, 0x8

    shr-int/2addr v2, v3

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method public static Code(Ljava/io/DataInputStream;)[I
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readUnsignedShort()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    shl-int/lit8 v0, v0, 0x2

    new-array v0, v0, [B

    invoke-virtual {p0, v0}, Ljava/io/DataInputStream;->readFully([B)V

    const/4 v1, 0x0

    array-length v2, v0

    invoke-static {v0, v1, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BII)[I

    move-result-object v0

    goto :goto_0
.end method

.method public static Code([BII)[I
    .locals 4

    shr-int/lit8 v0, p2, 0x2

    new-array v0, v0, [I

    array-length v1, v0

    :goto_0
    add-int/lit8 v1, v1, -0x1

    if-ltz v1, :cond_0

    shl-int/lit8 v2, v1, 0x2

    add-int/2addr v2, p1

    aget-byte v2, p0, v2

    shl-int/lit8 v2, v2, 0x18

    shl-int/lit8 v3, v1, 0x2

    add-int/2addr v3, p1

    add-int/lit8 v3, v3, 0x1

    aget-byte v3, p0, v3

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x10

    or-int/2addr v2, v3

    shl-int/lit8 v3, v1, 0x2

    add-int/2addr v3, p1

    add-int/lit8 v3, v3, 0x2

    aget-byte v3, p0, v3

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    or-int/2addr v2, v3

    shl-int/lit8 v3, v1, 0x2

    add-int/2addr v3, p1

    add-int/lit8 v3, v3, 0x3

    aget-byte v3, p0, v3

    and-int/lit16 v3, v3, 0xff

    or-int/2addr v2, v3

    aput v2, v0, v1

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method public static Code([Lcom/opera/mini/generic/ImageAdapter;I)[Lcom/opera/mini/generic/ImageAdapter;
    .locals 3

    const/4 v2, 0x0

    new-array v0, p1, [Lcom/opera/mini/generic/ImageAdapter;

    array-length v1, p0

    invoke-static {p0, v2, v0, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    return-object v0
.end method

.method public static I(Ljava/lang/String;Ljava/lang/String;)I
    .locals 7

    const/4 v6, 0x0

    if-nez p0, :cond_0

    move v0, v6

    :goto_0
    return v0

    :cond_0
    :try_start_0
    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->c(Ljava/lang/String;)[Ljava/lang/Object;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v3

    move v4, v6

    :goto_1
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aL:[Lcom/opera/mini/generic/LogicalDocument;

    array-length v0, v0

    if-ge v4, v0, :cond_3

    :try_start_1
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aL:[Lcom/opera/mini/generic/LogicalDocument;

    aget-object v5, v0, v4

    const/4 v0, 0x0

    aget-object p0, v3, v0

    check-cast p0, Ljava/lang/String;

    const/4 v0, 0x1

    aget-object v0, v3, v0

    check-cast v0, Ljava/lang/String;

    const/4 v1, 0x2

    aget-object v1, v3, v1

    check-cast v1, Ljava/lang/Integer;

    const/4 v2, 0x3

    aget-object v2, v3, v2

    check-cast v2, Ljava/lang/String;

    invoke-virtual {v5, p0, v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aL:[Lcom/opera/mini/generic/LogicalDocument;

    aget-object v0, v0, v4

    iget v0, v0, Lcom/opera/mini/generic/LogicalDocument;->g:I

    const/16 v1, 0xff

    if-ne v0, v1, :cond_1

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->I(Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    goto :goto_0

    :catchall_0
    move-exception v0

    move v0, v6

    goto :goto_0

    :cond_1
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aL:[Lcom/opera/mini/generic/LogicalDocument;

    aget-object v0, v0, v4

    iget v0, v0, Lcom/opera/mini/generic/LogicalDocument;->g:I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    goto :goto_0

    :cond_2
    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_1

    :catchall_1
    move-exception v0

    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_1

    :cond_3
    move v0, v6

    goto :goto_0
.end method

.method public static I(Ljava/io/InputStream;)Ljava/lang/String;
    .locals 4

    const/4 v1, 0x0

    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    invoke-direct {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;-><init>(I)V

    const/16 v1, 0x100

    new-array v1, v1, [B

    move-object v2, v1

    move-object v3, p0

    :goto_0
    :try_start_0
    invoke-virtual {v3, v2}, Ljava/io/InputStream;->read([B)I

    move-result v2

    if-ltz v2, :cond_0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v3, v2}, Lcom/opera/mini/generic/LogicalDocument;->Z([BII)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    move-object v2, v1

    move-object v3, p0

    goto :goto_0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    :goto_1
    return-object v0

    :cond_0
    const/16 v1, 0x20

    new-array v1, v1, [B

    invoke-virtual {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->Code([B)V

    array-length v0, v1

    invoke-static {v1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BI)Ljava/lang/String;

    move-result-object v0

    goto :goto_1
.end method

.method public static I(Ljava/lang/String;)Ljava/lang/String;
    .locals 5

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const/4 v1, 0x0

    :goto_0
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v2

    if-ge v1, v2, :cond_2

    invoke-virtual {p0, v1}, Ljava/lang/String;->charAt(I)C

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "%00"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    const-string v3, "%&=;"

    invoke-virtual {v3, v2}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    if-ltz v3, :cond_1

    const/16 v3, 0x25

    invoke-virtual {v0, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v3

    const/16 v4, 0x10

    invoke-static {v2, v4}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static I(I)V
    .locals 2

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    add-int/2addr v0, p0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->al:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->aK()V

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    const/16 v1, 0xa0

    if-lt v0, v1, :cond_0

    const/4 v0, 0x0

    sput-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->al:Z

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method public static I(II)V
    .locals 4

    const/16 v3, 0x8

    const/4 v2, 0x1

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aB:I

    shl-int/2addr v0, p1

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->aB:I

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aB:I

    shl-int v1, v2, p1

    sub-int/2addr v1, v2

    and-int/2addr v1, p0

    or-int/2addr v0, v1

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->aB:I

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    add-int/2addr v0, p1

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    :goto_0
    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    if-lt v0, v3, :cond_0

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    sub-int/2addr v0, v3

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->az:Le;

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->aB:I

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->aA:I

    shr-int/2addr v1, v2

    invoke-virtual {v0, v1}, Le;->write(I)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method public static I(IZ)V
    .locals 8

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    if-nez p0, :cond_c

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->aE()I

    move-result v0

    const/16 v1, 0x1cc

    if-ne v0, v1, :cond_3

    move v0, v7

    :goto_0
    if-eqz p1, :cond_0

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bQ:I

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->bR:I

    :cond_0
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v1, v1, v5

    aget-object v1, v1, v6

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v2, v2, v5

    array-length v2, v2

    sub-int/2addr v2, v7

    new-array v2, v2, [Ljava/lang/String;

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v2, v2, v5

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v4, v4, v5

    array-length v4, v4

    sub-int/2addr v4, v7

    invoke-static {v2, v7, v3, v5, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    move v2, v5

    :goto_1
    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    array-length v3, v3

    if-ge v2, v3, :cond_b

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v3, v3, v2

    aget-object v4, v3, v5

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    if-ne v4, v0, :cond_4

    aget-object v1, v3, v6

    array-length v2, v3

    sub-int/2addr v2, v7

    new-array v2, v2, [Ljava/lang/String;

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    array-length v4, v3

    sub-int/2addr v4, v7

    invoke-static {v3, v7, v2, v5, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    move-object v2, v1

    move v1, v6

    :goto_2
    if-nez v1, :cond_1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v0, v0, v5

    aget-object v0, v0, v5

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    :cond_1
    const-string v1, "key"

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->B(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_5

    const-string v1, "key"

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->B(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_3
    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Ljava/lang/String;)[B

    move-result-object v1

    const/16 v2, 0xa0

    invoke-static {v1, v5, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BII)[I

    move-result-object v1

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cs:[I

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->bQ:I

    move v0, v5

    move v1, v5

    move v2, v5

    :goto_4
    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    array-length v3, v3

    if-ge v0, v3, :cond_7

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    aget-object v3, v3, v0

    const-string v4, "http://"

    invoke-virtual {v3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    const-string v4, "http://10.0.0.172"

    invoke-virtual {v3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_6

    move v1, v6

    :cond_2
    :goto_5
    add-int/lit8 v0, v0, 0x1

    goto :goto_4

    :cond_3
    move v0, v6

    goto/16 :goto_0

    :cond_4
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_5
    move-object v1, v2

    goto :goto_3

    :cond_6
    move v2, v6

    goto :goto_5

    :cond_7
    if-nez v1, :cond_a

    if-eqz v2, :cond_a

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->aD()Z

    move-result v0

    if-eqz v0, :cond_a

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    array-length v0, v0

    add-int/lit8 v0, v0, 0x1

    new-array v0, v0, [Ljava/lang/String;

    move v1, v5

    move v2, v5

    :goto_6
    array-length v3, v0

    if-ge v1, v3, :cond_9

    if-ne v1, v6, :cond_8

    const-string v2, "http://10.0.0.172:80/"

    aput-object v2, v0, v1

    add-int/lit8 v1, v1, 0x1

    move v2, v6

    goto :goto_6

    :cond_8
    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    sub-int v4, v1, v2

    aget-object v3, v3, v4

    aput-object v3, v0, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_6

    :cond_9
    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    :cond_a
    return-void

    :cond_b
    move-object v2, v1

    move v1, v5

    goto/16 :goto_2

    :cond_c
    move v0, p0

    goto/16 :goto_0
.end method

.method public static declared-synchronized I(I[B)V
    .locals 11
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v2, 0x1

    const/4 v1, 0x0

    const-class v6, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v6

    :try_start_0
    new-instance v7, Ljava/io/DataInputStream;

    new-instance v0, Ljava/io/ByteArrayInputStream;

    invoke-direct {v0, p1}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    invoke-direct {v7, v0}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :try_start_1
    invoke-virtual {v7}, Ljava/io/DataInputStream;->readByte()B

    move-result v0

    and-int/lit8 v0, v0, 0x1

    if-ne v0, v2, :cond_0

    move v0, v2

    :goto_0
    sput-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->aM:Z

    invoke-virtual {v7}, Ljava/io/DataInputStream;->readUnsignedByte()I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    move-result v8

    add-int/lit8 v0, v8, 0x1

    :try_start_2
    new-array v9, v0, [Lcom/opera/mini/generic/LogicalDocument;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move v10, v1

    :goto_1
    if-ge v10, v8, :cond_1

    :try_start_3
    new-instance v0, Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v7}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v7}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v7}, Ljava/io/DataInputStream;->readUnsignedShort()I

    move-result v3

    invoke-virtual {v7}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v7}, Ljava/io/DataInputStream;->readUnsignedByte()I

    move-result v5

    invoke-direct/range {v0 .. v5}, Lcom/opera/mini/generic/LogicalDocument;-><init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    :try_start_4
    aput-object v0, v9, v10

    add-int/lit8 v0, v10, 0x1

    move v10, v0

    goto :goto_1

    :cond_0
    move v0, v1

    goto :goto_0

    :cond_1
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aO:Lcom/opera/mini/generic/LogicalDocument;

    aput-object v0, v9, v8

    sput-object v9, Lcom/opera/mini/android/AndroidNativeImage;->aL:[Lcom/opera/mini/generic/LogicalDocument;

    sput p0, Lcom/opera/mini/android/AndroidNativeImage;->aK:I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    monitor-exit v6

    return-void

    :catch_0
    move-exception v0

    const/4 v1, 0x1

    :try_start_5
    new-array v1, v1, [Lcom/opera/mini/generic/LogicalDocument;

    const/4 v2, 0x0

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aO:Lcom/opera/mini/generic/LogicalDocument;

    aput-object v3, v1, v2

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aL:[Lcom/opera/mini/generic/LogicalDocument;

    const/4 v1, 0x0

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->aK:I

    throw v0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :catchall_0
    move-exception v0

    monitor-exit v6

    throw v0
.end method

.method public static I(Ljava/io/DataInputStream;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readByte()B

    move-result v0

    const/16 v1, 0x8

    :goto_0
    add-int/lit8 v2, v1, -0x1

    if-lez v1, :cond_0

    :try_start_0
    invoke-virtual {p0}, Ljava/io/DataInputStream;->readInt()I

    move-result v1

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Z(I)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    move v1, v2

    goto :goto_0

    :cond_0
    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->ai:Z

    if-eqz v1, :cond_1

    const/16 v1, 0xa0

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    :cond_1
    :try_start_1
    invoke-static {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/DataInputStream;I)V

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readBoolean()Z

    move-result v1

    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->aq:Z

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readInt()I

    move-result v1

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->ar:I

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readInt()I

    move-result v1

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->aa:I

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1, p0, v0}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/io/DataInputStream;I)V

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readInt()I

    move-result v0

    sput v0, Lcom/opera/mini/android/AndroidNativeImage;->as:I

    invoke-virtual {p0}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v0

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->at:Ljava/lang/String;

    :goto_1
    return-void

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public static I(C)Z
    .locals 2

    const v0, 0xfc00

    and-int/2addr v0, p0

    const v1, 0xdc00

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static I([BII)Z
    .locals 5

    const/16 v4, 0xa

    const/4 v3, 0x0

    const/16 v0, 0x8

    if-gt p2, v0, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    add-int/lit8 v0, p1, 0x1

    aget-byte v1, p0, p1

    const/16 v2, -0x77

    if-ne v1, v2, :cond_1

    add-int/lit8 v1, v0, 0x1

    aget-byte v0, p0, v0

    const/16 v2, 0x50

    if-ne v0, v2, :cond_1

    add-int/lit8 v0, v1, 0x1

    aget-byte v1, p0, v1

    const/16 v2, 0x4e

    if-ne v1, v2, :cond_1

    add-int/lit8 v1, v0, 0x1

    aget-byte v0, p0, v0

    const/16 v2, 0x47

    if-ne v0, v2, :cond_1

    add-int/lit8 v0, v1, 0x1

    aget-byte v1, p0, v1

    const/16 v2, 0xd

    if-ne v1, v2, :cond_1

    add-int/lit8 v1, v0, 0x1

    aget-byte v0, p0, v0

    if-ne v0, v4, :cond_1

    add-int/lit8 v0, v1, 0x1

    aget-byte v1, p0, v1

    const/16 v2, 0x1a

    if-ne v1, v2, :cond_1

    aget-byte v0, p0, v0

    if-eq v0, v4, :cond_2

    :cond_1
    move v0, v3

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public static J(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 1

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, p0}, Lcom/opera/mini/generic/LogicalDocument;->d(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    return-object v0
.end method

.method public static J(I)[B
    .locals 6

    const/4 v4, 0x0

    const v0, 0x8000

    and-int/2addr v0, p0

    if-nez v0, :cond_0

    :try_start_0
    new-instance v0, Ljava/io/DataInputStream;

    const-string v1, "/t"

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->J(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    invoke-static {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ILjava/io/DataInputStream;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result v1

    :goto_0
    :try_start_2
    new-array v2, v1, [B

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3, v1}, Ljava/io/DataInputStream;->readFully([BII)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_3
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    move-object v0, v2

    :goto_1
    return-object v0

    :cond_0
    :try_start_3
    invoke-static {p0}, LCode;->Code(I)LCode;

    move-result-object v0

    new-instance v1, Ljava/io/DataInputStream;

    invoke-direct {v1, v0}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    :try_start_4
    iget v0, v0, LCode;->Z:I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    move-object v5, v1

    move v1, v0

    move-object v0, v5

    goto :goto_0

    :catch_0
    move-exception v0

    move-object v0, v4

    :goto_2
    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    move-object v0, v4

    goto :goto_1

    :catchall_0
    move-exception v0

    move-object v1, v4

    :goto_3
    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    throw v0

    :catchall_1
    move-exception v1

    move-object v5, v1

    move-object v1, v0

    move-object v0, v5

    goto :goto_3

    :catchall_2
    move-exception v0

    goto :goto_3

    :catchall_3
    move-exception v1

    move-object v5, v1

    move-object v1, v0

    move-object v0, v5

    goto :goto_3

    :catch_1
    move-exception v1

    goto :goto_2

    :catch_2
    move-exception v0

    move-object v0, v1

    goto :goto_2
.end method

.method public static Z(II)I
    .locals 2

    const/4 v1, 0x1

    sub-int v0, p0, v1

    shl-int v0, v1, v0

    if-ge p1, v0, :cond_0

    const/4 v0, -0x1

    shl-int/2addr v0, p0

    add-int/2addr v0, p1

    add-int/lit8 v0, v0, 0x1

    :goto_0
    return v0

    :cond_0
    move v0, p1

    goto :goto_0
.end method

.method public static Z(I)V
    .locals 1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, p0}, Lcom/opera/mini/generic/LogicalDocument;->C(I)V

    return-void
.end method

.method public static declared-synchronized Z(I[B)V
    .locals 4

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    :try_start_0
    invoke-static {p0, p1}, Lcom/opera/mini/android/AndroidNativeImage;->I(I[B)V

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    const-string v2, "zerorating"

    invoke-virtual {v1, v2}, Ld;->Code(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    const-string v2, "zerorating"

    invoke-virtual {v1, v2}, Ld;->Z(Ljava/lang/String;)V

    :cond_0
    const/4 v1, 0x4

    new-array v1, v1, [B

    sget v2, Lcom/opera/mini/android/AndroidNativeImage;->aK:I

    const/4 v3, 0x0

    invoke-static {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->J(I[BI)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    const-string v3, "zerorating"

    invoke-virtual {v2, v3, v1}, Ld;->Code(Ljava/lang/String;[B)I

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    const-string v2, "zerorating"

    invoke-virtual {v1, v2, p1}, Ld;->Code(Ljava/lang/String;[B)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method public static Z(Ljava/lang/String;)[B
    .locals 4

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    shr-int/lit8 v0, v0, 0x1

    new-array v0, v0, [B

    const/4 v1, 0x0

    :goto_0
    array-length v2, v0

    if-ge v1, v2, :cond_0

    mul-int/lit8 v2, v1, 0x2

    mul-int/lit8 v3, v1, 0x2

    add-int/lit8 v3, v3, 0x2

    invoke-virtual {p0, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    const/16 v3, 0x10

    invoke-static {v2, v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v2

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method public static a()I
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->e:Lcom/opera/mini/generic/LogicalDocument;

    iget-boolean v0, v0, Lcom/opera/mini/generic/LogicalDocument;->am:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->e:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1}, Lcom/opera/mini/generic/LogicalDocument;->ab()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->x(I)I

    move-result v0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->m:Lcom/opera/mini/generic/FontAdapter;

    invoke-interface {v1}, Lcom/opera/mini/generic/FontAdapter;->getHeight()I

    move-result v1

    shr-int/lit8 v1, v1, 0x1

    sub-int/2addr v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->b()I

    move-result v0

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->s:I

    add-int/2addr v0, v1

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->e:Lcom/opera/mini/generic/LogicalDocument;

    iget v1, v1, Lcom/opera/mini/generic/LogicalDocument;->ar:I

    add-int/2addr v0, v1

    goto :goto_0
.end method

.method public static a(I)I
    .locals 1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v0, v0, p0

    invoke-interface {v0}, Lcom/opera/mini/generic/FontAdapter;->Code()I

    move-result v0

    return v0
.end method

.method public static a(Ljava/lang/String;)V
    .locals 5

    const/4 v2, 0x1

    const/4 v4, 0x0

    :try_start_0
    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    invoke-virtual {v0, p0}, Ld;->I(Ljava/lang/String;)[B

    move-result-object v0

    new-instance v1, Ljava/io/ByteArrayInputStream;

    invoke-direct {v1, v0}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    new-instance v0, Ljava/io/DataInputStream;

    invoke-direct {v0, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    const-string v1, "mc"

    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readByte()B

    move-result v1

    if-ne v1, v2, :cond_1

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x40

    if-lt v2, v3, :cond_0

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-static {v2, v1, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ILjava/lang/String;Z)V

    :cond_0
    invoke-virtual {v0}, Ljava/io/DataInputStream;->readBoolean()Z

    move-result v0

    sput-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->ai:Z

    :cond_1
    :goto_0
    return-void

    :cond_2
    const-string v1, "md"

    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->I(Ljava/io/DataInputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    if-nez v4, :cond_1

    goto :goto_0
.end method

.method public static b()I
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->c:Lcom/opera/mini/generic/LogicalDocument;

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1}, Lcom/opera/mini/generic/LogicalDocument;->ab()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->x(I)I

    move-result v0

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->s:I

    shr-int/lit8 v1, v1, 0x1

    sub-int/2addr v0, v1

    return v0
.end method

.method public static b(I)I
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v0, v0, p0

    invoke-interface {v0}, Lcom/opera/mini/generic/FontAdapter;->getBaselinePosition()I

    move-result v0

    if-lez v0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v0, v0, p0

    invoke-interface {v0}, Lcom/opera/mini/generic/FontAdapter;->getBaselinePosition()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v0, v0, p0

    invoke-interface {v0}, Lcom/opera/mini/generic/FontAdapter;->Code()I

    move-result v0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->au:[Lcom/opera/mini/generic/FontAdapter;

    aget-object v1, v1, p0

    invoke-interface {v1}, Lcom/opera/mini/generic/FontAdapter;->I()I

    move-result v1

    sub-int/2addr v0, v1

    goto :goto_0
.end method

.method public static b(Ljava/lang/String;)Ljava/lang/String;
    .locals 6

    const v5, 0xfe80

    const v4, 0xfef5

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0, p0}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    const/4 v1, 0x0

    :goto_0
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->length()I

    move-result v2

    if-ge v1, v2, :cond_2

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->charAt(I)C

    move-result v2

    if-gt v5, v2, :cond_1

    if-ge v2, v4, :cond_1

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aF:[B

    sub-int/2addr v2, v5

    aget-byte v2, v3, v2

    and-int/lit16 v2, v2, 0xff

    add-int/lit16 v2, v2, 0x600

    int-to-char v2, v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuffer;->setCharAt(IC)V

    :cond_0
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    if-gt v4, v2, :cond_0

    const v3, 0xfefc

    if-gt v2, v3, :cond_0

    const/16 v3, 0x644

    invoke-virtual {v0, v1, v3}, Ljava/lang/StringBuffer;->setCharAt(IC)V

    add-int/lit8 v1, v1, 0x1

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aE:[B

    sub-int/2addr v2, v4

    aget-byte v2, v3, v2

    and-int/lit16 v2, v2, 0xff

    add-int/lit16 v2, v2, 0x600

    int-to-char v2, v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuffer;->insert(IC)Ljava/lang/StringBuffer;

    goto :goto_1

    :cond_2
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static c()V
    .locals 2

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    long-to-int v0, v0

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(I)V

    return-void
.end method

.method public static c(Ljava/lang/String;)[Ljava/lang/Object;
    .locals 10

    const/16 v8, 0x3a

    const/4 v7, 0x4

    const/4 v6, 0x2

    const/4 v5, 0x0

    const/4 v4, -0x1

    invoke-virtual {p0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    :goto_0
    const-string v1, "<"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const/16 v1, 0x3e

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_0
    invoke-virtual {v0, v8}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    if-eq v1, v4, :cond_1

    invoke-virtual {v0, v5, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    const/16 v3, 0x2e

    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    if-ne v3, v4, :cond_1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    move-object v1, v0

    move-object v0, v2

    :goto_1
    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aI:Ljava/util/Hashtable;

    invoke-virtual {v2, v0}, Ljava/util/Hashtable;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string v2, ""

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aJ:Ljava/lang/Integer;

    move-object v9, v3

    move-object v3, v1

    move-object v1, v9

    :goto_2
    new-array v4, v7, [Ljava/lang/Object;

    aput-object v0, v4, v5

    const/4 v0, 0x1

    aput-object v2, v4, v0

    aput-object v1, v4, v6

    const/4 v0, 0x3

    aput-object v3, v4, v0

    return-object v4

    :cond_1
    const-string v1, "http"

    move-object v9, v1

    move-object v1, v0

    move-object v0, v9

    goto :goto_1

    :cond_2
    const-string v2, "//"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {v1, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    :cond_3
    const/16 v2, 0x3f

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    if-eq v2, v4, :cond_4

    invoke-virtual {v1, v5, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    :cond_4
    const/16 v2, 0x2f

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    if-eq v2, v4, :cond_7

    invoke-virtual {v1, v5, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    move-object v2, v1

    move-object v1, v3

    :goto_3
    const/16 v3, 0x40

    invoke-virtual {v1, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    if-eq v3, v4, :cond_5

    add-int/lit8 v3, v3, 0x1

    invoke-virtual {v1, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    :cond_5
    const-string v3, "www."

    invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_6

    invoke-virtual {v1, v7}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    :cond_6
    invoke-virtual {v1, v8}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    if-eq v3, v4, :cond_8

    add-int/lit8 v4, v3, 0x1

    invoke-virtual {v1, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v1, v5, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    move-object v3, v2

    move-object v2, v1

    move-object v1, v4

    goto :goto_2

    :cond_7
    const-string v2, ""

    goto :goto_3

    :cond_8
    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aI:Ljava/util/Hashtable;

    invoke-virtual {v3, v0}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Integer;

    move-object v3, v2

    move-object v2, v1

    move-object v1, p0

    goto :goto_2
.end method

.method public static d(Ljava/lang/String;)I
    .locals 7

    const/16 v5, 0x3a

    const/4 v4, 0x0

    const/4 v0, -0x1

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    array-length v1, v1

    move v6, v1

    move v1, v0

    move v0, v6

    :goto_0
    add-int/lit8 v2, v0, -0x1

    if-lez v0, :cond_2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    aget-object v0, v0, v2

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v2

    :goto_1
    return v0

    :cond_0
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    aget-object v0, v0, v2

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    aget-object v3, v3, v2

    invoke-virtual {v3, v5}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    invoke-virtual {v0, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v5}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    invoke-virtual {p0, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v2

    move v1, v2

    goto :goto_0

    :cond_1
    move v0, v2

    goto :goto_0

    :cond_2
    move v0, v1

    goto :goto_1
.end method

.method public static d()V
    .locals 5

    const/16 v4, 0xa0

    const/4 v3, 0x1

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    if-ge v0, v4, :cond_1

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->ah:Z

    if-eqz v0, :cond_1

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->aI()V

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    invoke-virtual {v0, v4}, Lcom/opera/bream/vm/BreamVM;->ipush(I)V

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    invoke-virtual {v0, v1}, Lcom/opera/bream/vm/BreamVM;->ipush(I)V

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    invoke-virtual {v0, v3}, Lcom/opera/bream/vm/BreamVM;->ipush(I)V

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v1, 0x0

    const/16 v2, 0x41

    invoke-virtual {v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->d(II)V

    :goto_0
    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    if-ge v0, v4, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ak:Lcom/opera/mini/generic/LogicalDocument;

    const/16 v1, 0x1388

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;I)V

    goto :goto_0

    :cond_0
    const-string v0, "mc"

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    const-string v0, "md"

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    :cond_1
    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->aj:I

    if-lt v0, v4, :cond_2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    aget-object v0, v0, v3

    if-nez v0, :cond_2

    const/16 v0, 0x20

    new-array v0, v0, [B

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code([B)Lcom/opera/mini/generic/LogicalDocument;

    array-length v1, v0

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BI)Ljava/lang/String;

    move-result-object v0

    invoke-static {v3, v0, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ILjava/lang/String;Z)V

    :cond_2
    return-void
.end method

.method public static declared-synchronized e()I
    .locals 3

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    :try_start_0
    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->ar:I

    add-int/lit8 v1, v1, 0x1

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->ar:I

    const-string v2, "md"

    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return v1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static e(I)V
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bW:Z

    if-eqz v1, :cond_0

    monitor-exit v0

    :goto_0
    return-void

    :cond_0
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-le v1, p0, :cond_1

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    invoke-virtual {v1, p0}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_1

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;)V

    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    :cond_1
    :try_start_1
    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-eqz v1, :cond_3

    if-lez p0, :cond_2

    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->aM:Z

    if-nez v1, :cond_3

    :cond_2
    const/4 v1, 0x1

    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bV:Z

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1, p0}, Lcom/opera/mini/generic/LogicalDocument;->j(I)Lcom/opera/mini/android/AndroidNativeImage;

    monitor-exit v0

    goto :goto_0

    :cond_3
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    if-eqz v1, :cond_4

    sget-object v1, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v1, p0}, Lcom/opera/mini/generic/LogicalDocument;->j(I)Lcom/opera/mini/android/AndroidNativeImage;

    :cond_4
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0
.end method

.method public static f()V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aD:Ld;

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    const-string v1, "zerorating"

    invoke-virtual {v0, v1}, Ld;->Code(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    :try_start_0
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    const-string v1, "zerorating"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Ld;->Code(Ljava/lang/String;I)[B

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->c([BI)I

    move-result v0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aN:Ld;

    const-string v2, "zerorating"

    const/4 v3, 0x2

    invoke-virtual {v1, v2, v3}, Ld;->Code(Ljava/lang/String;I)[B

    move-result-object v1

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->I(I[B)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :cond_0
    new-array v0, v3, [Lcom/opera/mini/generic/LogicalDocument;

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aO:Lcom/opera/mini/generic/LogicalDocument;

    aput-object v1, v0, v2

    sput-object v0, Lcom/opera/mini/android/AndroidNativeImage;->aL:[Lcom/opera/mini/generic/LogicalDocument;

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public static declared-synchronized g()V
    .locals 10

    const/16 v9, 0x300

    const/16 v8, 0x100

    const/16 v7, 0x40

    const/4 v6, 0x0

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    :try_start_0
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v1, :cond_5

    const/4 v1, 0x0

    :try_start_1
    new-instance v2, Ljava/io/DataInputStream;

    const-string v3, "/t"

    invoke-static {v3}, Lcom/opera/mini/android/AndroidNativeImage;->J(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    const/4 v3, 0x1

    invoke-static {v3, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ILjava/io/DataInputStream;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/16 v1, 0x300

    :try_start_2
    new-array v1, v1, [S

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    const/16 v1, 0x100

    new-array v1, v1, [S

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aU:[S

    const/16 v1, 0x100

    new-array v1, v1, [S

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aV:[S

    const/16 v1, 0x40

    new-array v1, v1, [I

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    const/16 v1, 0x40

    new-array v1, v1, [I

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->aX:[I

    move v1, v6

    move v3, v6

    :goto_0
    if-ge v1, v9, :cond_0

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    invoke-virtual {v2}, Ljava/io/DataInputStream;->readShort()S

    move-result v5

    add-int/2addr v3, v5

    int-to-short v3, v3

    aput-short v3, v4, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    move v1, v6

    move v3, v6

    :goto_1
    if-ge v1, v8, :cond_1

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->aU:[S

    invoke-virtual {v2}, Ljava/io/DataInputStream;->readShort()S

    move-result v5

    add-int/2addr v3, v5

    int-to-short v3, v3

    aput-short v3, v4, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_1
    move v1, v6

    move v3, v6

    :goto_2
    if-ge v1, v8, :cond_2

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->aV:[S

    invoke-virtual {v2}, Ljava/io/DataInputStream;->readShort()S

    move-result v5

    add-int/2addr v3, v5

    int-to-short v3, v3

    aput-short v3, v4, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    :cond_2
    move v1, v6

    move v3, v6

    :goto_3
    if-ge v1, v7, :cond_3

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    invoke-virtual {v2}, Ljava/io/DataInputStream;->readShort()S

    move-result v5

    add-int/2addr v3, v5

    int-to-short v3, v3

    aput v3, v4, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    :cond_3
    move v1, v6

    move v3, v6

    :goto_4
    if-ge v1, v7, :cond_4

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->aX:[I

    invoke-virtual {v2}, Ljava/io/DataInputStream;->readShort()S

    move-result v5

    add-int/2addr v3, v5

    int-to-short v3, v3

    aput v3, v4, v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    add-int/lit8 v1, v1, 0x1

    goto :goto_4

    :cond_4
    :try_start_3
    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :cond_5
    :goto_5
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v2

    :goto_6
    :try_start_4
    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    goto :goto_5

    :catchall_1
    move-exception v1

    monitor-exit v0

    throw v1

    :catchall_2
    move-exception v1

    move-object v1, v2

    goto :goto_6
.end method

.method public static h(I)V
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    :goto_0
    :try_start_0
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    invoke-virtual {v1, p0}, LCode;->J(I)V

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    iget-object v1, v1, LCode;->b:LCode;

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    :cond_0
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public static k(I)V
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    if-eq v1, p0, :cond_1

    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-eqz v1, :cond_0

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    if-eqz v1, :cond_1

    :cond_0
    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->l(I)V

    :cond_1
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public static l()V
    .locals 4

    const/4 v2, 0x0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    :goto_0
    if-ge v2, v1, :cond_1

    :try_start_0
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/opera/mini/android/AndroidNativeImage;

    if-eqz v0, :cond_0

    const/4 v3, 0x0

    invoke-virtual {v0, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :catchall_0
    move-exception v0

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_1
    return-void
.end method

.method public static l(I)V
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    sput p0, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    const/4 v1, 0x1

    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    const/4 v1, -0x1

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->bT:I

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->l()V

    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public static q()Ljava/lang/String;
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bS:I

    aget-object v0, v0, v1

    return-object v0
.end method

.method public static t()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-nez v0, :cond_0

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->l(I)V

    :cond_0
    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0
.end method

.method public static declared-synchronized w()V
    .locals 6

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    const/4 v1, 0x0

    :try_start_0
    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cu:[I

    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cw:[B

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cA:[B

    const/4 v2, 0x0

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    const/4 v4, 0x0

    const/16 v5, 0x8

    invoke-static {v1, v2, v3, v4, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static x()Z
    .locals 5

    const/4 v4, 0x0

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->ah:Z

    if-nez v0, :cond_0

    move v0, v4

    :goto_0
    return v0

    :cond_0
    sget-wide v0, Lcom/opera/mini/android/AndroidNativeImage;->ct:J

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    cmp-long v0, v0, v2

    if-ltz v0, :cond_1

    sget-wide v0, Lcom/opera/mini/android/AndroidNativeImage;->ct:J

    const-wide/32 v2, 0x6c258c00

    sub-long/2addr v0, v2

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    cmp-long v0, v0, v2

    if-lez v0, :cond_2

    :cond_1
    const/4 v0, 0x1

    goto :goto_0

    :cond_2
    move v0, v4

    goto :goto_0
.end method

.method public static declared-synchronized y()V
    .locals 10

    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    const/16 v6, 0x20

    const-class v0, Lcom/opera/mini/android/AndroidNativeImage;

    monitor-enter v0

    :try_start_0
    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->x()Z

    move-result v1

    if-nez v1, :cond_0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    if-nez v1, :cond_2

    :cond_0
    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_1
    :goto_0
    monitor-exit v0

    return-void

    :cond_2
    :try_start_1
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cu:[I

    if-eqz v1, :cond_9

    new-instance v1, Lcom/opera/mini/generic/LogicalDocument;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Lcom/opera/mini/generic/LogicalDocument;-><init>(I)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cu:[I

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cs:[I

    invoke-static {v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->Code([I[I)[I

    move-result-object v2

    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code([I)[B

    move-result-object v2

    const/4 v3, 0x0

    aget-byte v3, v2, v3

    if-nez v3, :cond_3

    const/4 v3, 0x1

    aget-byte v3, v2, v3

    if-ne v3, v8, :cond_3

    array-length v3, v2

    sub-int/2addr v3, v6

    sub-int/2addr v3, v8

    aget-byte v3, v2, v3

    if-eqz v3, :cond_4

    :cond_3
    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    :cond_4
    move v3, v9

    :goto_1
    :try_start_2
    array-length v4, v2

    sub-int/2addr v4, v6

    sub-int/2addr v4, v9

    if-ge v3, v4, :cond_6

    aget-byte v4, v2, v3

    const/4 v5, -0x1

    if-eq v4, v5, :cond_5

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V

    goto :goto_0

    :cond_5
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_6
    sget-wide v3, Lcom/opera/mini/android/AndroidNativeImage;->ct:J

    shr-long/2addr v3, v6

    long-to-int v3, v3

    invoke-virtual {v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->C(I)V

    sget-wide v3, Lcom/opera/mini/android/AndroidNativeImage;->ct:J

    long-to-int v3, v3

    invoke-virtual {v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->C(I)V

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    invoke-static {v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code([I)[B

    move-result-object v3

    const/4 v4, 0x0

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    array-length v5, v5

    shl-int/lit8 v5, v5, 0x2

    invoke-virtual {v1, v3, v4, v5}, Lcom/opera/mini/generic/LogicalDocument;->Z([BII)V

    invoke-virtual {v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->Code([B)V

    move v1, v7

    :goto_2
    if-ge v1, v6, :cond_8

    aget-byte v3, v2, v1

    array-length v4, v2

    add-int/2addr v4, v1

    sub-int/2addr v4, v6

    aget-byte v4, v2, v4

    if-eq v3, v4, :cond_7

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V

    goto :goto_0

    :cond_7
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    :cond_8
    const/4 v1, 0x0

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cu:[I

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->ap:[Ljava/lang/String;

    const/4 v2, 0x1

    aget-object v1, v1, v2

    if-eqz v1, :cond_9

    const-string v1, "md"

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    :cond_9
    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cw:[B

    if-nez v1, :cond_1

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cA:[B

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code([B)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v1

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    array-length v2, v2

    shl-int/lit8 v2, v2, 0x2

    new-array v2, v2, [B

    move v3, v9

    :goto_3
    array-length v4, v2

    sub-int/2addr v4, v6

    if-ge v3, v4, :cond_b

    :goto_4
    aget-byte v4, v2, v3

    if-nez v4, :cond_a

    invoke-virtual {v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BI)V

    goto :goto_4

    :cond_a
    add-int/lit8 v3, v3, 0x1

    goto :goto_3

    :cond_b
    const/4 v3, 0x0

    const/4 v4, 0x0

    aput-byte v4, v2, v3

    const/4 v3, 0x1

    const/4 v4, 0x2

    aput-byte v4, v2, v3

    array-length v3, v2

    sub-int/2addr v3, v6

    sub-int/2addr v3, v8

    const/4 v4, 0x0

    aput-byte v4, v2, v3

    array-length v3, v2

    sub-int/2addr v3, v6

    invoke-virtual {v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BI)V

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cx:Lcom/opera/mini/generic/LogicalDocument;

    array-length v4, v2

    sub-int/2addr v4, v6

    invoke-virtual {v3, v2, v4}, Lcom/opera/mini/generic/LogicalDocument;->I([BI)V

    array-length v3, v2

    sub-int/2addr v3, v6

    invoke-virtual {v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->I([BI)V

    const/4 v1, 0x0

    array-length v3, v2

    invoke-static {v2, v1, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BII)[I

    move-result-object v1

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    invoke-static {v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->Code([I[I)[I

    move-result-object v1

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code([I)[B

    move-result-object v1

    sput-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cw:[B

    const/4 v1, 0x0

    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->cB:I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto/16 :goto_0
.end method


# virtual methods
.method public final C(II)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cc:Ljava/io/DataInputStream;

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    invoke-virtual {v0, v1, p1, p2}, Ljava/io/DataInputStream;->readFully([BII)V

    return-void
.end method

.method public final Code([BIIIZ)I
    .locals 15

    move-object/from16 v0, p1

    move-object v1, p0

    iput-object v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    move/from16 v0, p2

    move-object v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    move/from16 v0, p3

    move-object v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    move/from16 v0, p4

    move-object v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    const/4 v2, 0x0

    :cond_0
    :goto_0
    if-nez v2, :cond_4b

    :goto_1
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    if-lez v3, :cond_3

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    if-lt v3, v4, :cond_2

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int/2addr v2, v3

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    const/4 v2, 0x0

    :cond_1
    :goto_2
    return v2

    :cond_2
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    add-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v3, 0x0

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    goto :goto_1

    :cond_3
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    packed-switch v3, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x2

    if-ge v3, v4, :cond_4a

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto :goto_2

    :pswitch_1
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x2

    if-ge v3, v4, :cond_4

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto :goto_2

    :cond_4
    :goto_3
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x2

    if-lt v3, v4, :cond_0

    if-nez v2, :cond_0

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    if-nez v3, :cond_0

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    const/4 v4, 0x1

    if-eq v3, v4, :cond_5

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    const/4 v4, 0x2

    if-ne v3, v4, :cond_0

    :cond_5
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    const/16 v4, 0xff

    if-eq v3, v4, :cond_6

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x1

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x1

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto :goto_3

    :cond_6
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x1

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    sparse-switch v3, :sswitch_data_0

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    if-ge v3, v4, :cond_29

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto :goto_2

    :sswitch_0
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    if-ge v3, v4, :cond_7

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto :goto_2

    :cond_7
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x2

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x3

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/16 v4, 0xa

    if-ge v3, v4, :cond_8

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    :cond_8
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    const/4 v4, 0x2

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x3

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x4

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x1

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x2

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    if-eqz p5, :cond_9

    const/4 v2, 0x0

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    shl-int/lit8 v2, v2, 0x10

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    or-int/2addr v2, v3

    goto/16 :goto_2

    :cond_9
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shr-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aQ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shr-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aR:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aQ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aR:I

    mul-int/2addr v3, v4

    new-array v3, v3, [I

    iput-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->by:[I

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x5

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    const/4 v3, 0x0

    :goto_4
    const/4 v4, 0x3

    if-ge v3, v4, :cond_a

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bB:[I

    shl-int/lit8 v5, v3, 0x1

    const/4 v6, 0x0

    aput v6, v4, v5

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bB:[I

    shl-int/lit8 v5, v3, 0x1

    add-int/lit8 v5, v5, 0x1

    const/4 v6, 0x4

    aput v6, v4, v5

    add-int/lit8 v3, v3, 0x1

    goto :goto_4

    :cond_a
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->i()V

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x6

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x6

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    const/4 v4, 0x6

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    const/4 v3, 0x3

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    goto/16 :goto_3

    :sswitch_1
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    if-ge v3, v4, :cond_b

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    :cond_b
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x2

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x3

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    add-int/lit8 v4, v4, 0x2

    if-ge v3, v4, :cond_c

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    :cond_c
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x4

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x5

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x5

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    const/4 v4, 0x3

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    const/4 v3, 0x0

    :goto_5
    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    if-ge v3, v4, :cond_f

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    aput v3, v5, v3

    const/4 v5, 0x0

    :goto_6
    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    if-ge v5, v6, :cond_e

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bf:[I

    aget v6, v6, v5

    if-ne v4, v6, :cond_d

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    aput v5, v6, v3

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    :cond_d
    add-int/lit8 v5, v5, 0x1

    goto :goto_6

    :cond_e
    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x1

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bB:[I

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    aget v6, v6, v3

    shl-int/lit8 v6, v6, 0x1

    shr-int/lit8 v7, v4, 0x4

    aput v7, v5, v6

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bB:[I

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    aget v6, v6, v3

    shl-int/lit8 v6, v6, 0x1

    add-int/lit8 v6, v6, 0x1

    and-int/lit8 v4, v4, 0xf

    add-int/lit8 v4, v4, 0x4

    aput v4, v5, v6

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x2

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v5, 0x2

    sub-int/2addr v4, v5

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    const/4 v5, 0x2

    sub-int/2addr v4, v5

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    add-int/lit8 v3, v3, 0x1

    goto :goto_5

    :cond_f
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->i()V

    const/4 v3, 0x0

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bq:I

    const/4 v3, 0x0

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    const/4 v3, 0x0

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->br:I

    const/4 v3, 0x0

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bx:I

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->h()V

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    add-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v3, 0x4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    goto/16 :goto_3

    :sswitch_2
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v3, 0x4

    if-ge v2, v3, :cond_10

    const/4 v2, -0x2

    goto/16 :goto_3

    :cond_10
    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x2

    aget-byte v2, v2, v3

    and-int/lit16 v2, v2, 0xff

    shl-int/lit8 v2, v2, 0x8

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x3

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    or-int/2addr v2, v3

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v4, v2, 0x2

    if-ge v3, v4, :cond_11

    const/4 v2, -0x2

    goto/16 :goto_3

    :cond_11
    add-int/lit8 v2, v2, -0x2

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    :cond_12
    if-lez v2, :cond_1f

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v3, v3, v4

    and-int/lit8 v3, v3, 0xf

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v4, v4, v5

    and-int/lit8 v4, v4, 0x10

    shr-int/lit8 v4, v4, 0x2

    or-int/2addr v3, v4

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x1

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v5, 0x1

    sub-int/2addr v4, v5

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v2, v2, -0x1

    const/4 v4, 0x0

    const/16 v5, 0x10

    new-array v5, v5, [S

    const/4 v6, 0x0

    const/4 v7, 0x0

    move v14, v7

    move v7, v6

    move v6, v14

    :goto_7
    const/16 v8, 0x10

    if-ge v6, v8, :cond_13

    iget-object v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/2addr v9, v6

    aget-byte v8, v8, v9

    and-int/lit16 v8, v8, 0xff

    int-to-short v8, v8

    aput-short v8, v5, v6

    aget-short v8, v5, v6

    add-int/2addr v7, v8

    add-int/lit8 v6, v6, 0x1

    goto :goto_7

    :cond_13
    add-int/lit8 v6, v7, 0x1

    new-array v6, v6, [I

    new-array v7, v7, [I

    const/4 v8, 0x0

    move v14, v8

    move v8, v4

    move v4, v14

    :goto_8
    const/16 v9, 0x10

    if-ge v4, v9, :cond_15

    const/4 v9, 0x1

    move v14, v9

    move v9, v8

    move v8, v14

    :goto_9
    aget-short v10, v5, v4

    if-gt v8, v10, :cond_14

    add-int/lit8 v10, v4, 0x1

    aput v10, v6, v9

    add-int/lit8 v8, v8, 0x1

    add-int/lit8 v9, v9, 0x1

    goto :goto_9

    :cond_14
    add-int/lit8 v4, v4, 0x1

    move v8, v9

    goto :goto_8

    :cond_15
    const/4 v4, 0x0

    aput v4, v6, v8

    const/4 v4, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    aget v10, v6, v10

    move v14, v10

    move v10, v4

    move v4, v14

    :cond_16
    aget v11, v6, v10

    if-eqz v11, :cond_18

    :goto_a
    aget v11, v6, v10

    if-ne v11, v4, :cond_17

    aput v9, v7, v10

    add-int/lit8 v9, v9, 0x1

    add-int/lit8 v10, v10, 0x1

    goto :goto_a

    :cond_17
    aget v11, v6, v10

    if-eqz v11, :cond_16

    :goto_b
    aget v11, v6, v10

    if-eq v11, v4, :cond_16

    shl-int/lit8 v9, v9, 0x1

    add-int/lit8 v4, v4, 0x1

    goto :goto_b

    :cond_18
    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bD:[[I

    const/16 v6, 0x10

    new-array v6, v6, [I

    aput-object v6, v4, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bC:[[I

    const/16 v6, 0x10

    new-array v6, v6, [I

    aput-object v6, v4, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bE:[[S

    const/16 v6, 0x10

    new-array v6, v6, [S

    aput-object v6, v4, v3

    const/4 v4, 0x0

    const/4 v6, 0x0

    move v14, v6

    move v6, v4

    move v4, v14

    :goto_c
    const/16 v9, 0x10

    if-ge v4, v9, :cond_1a

    aget-short v9, v5, v4

    if-nez v9, :cond_19

    iget-object v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->bC:[[I

    aget-object v9, v9, v3

    const/4 v10, -0x1

    aput v10, v9, v4

    add-int/lit8 v4, v4, 0x1

    goto :goto_c

    :cond_19
    iget-object v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->bE:[[S

    aget-object v9, v9, v3

    int-to-short v10, v6

    aput-short v10, v9, v4

    iget-object v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->bD:[[I

    aget-object v9, v9, v3

    aget v10, v7, v6

    aput v10, v9, v4

    aget-short v9, v5, v4

    const/4 v10, 0x1

    sub-int/2addr v9, v10

    add-int/2addr v6, v9

    iget-object v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->bC:[[I

    aget-object v9, v9, v3

    aget v10, v7, v6

    aput v10, v9, v4

    add-int/lit8 v6, v6, 0x1

    add-int/lit8 v4, v4, 0x1

    goto :goto_c

    :cond_1a
    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x10

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/16 v6, 0x10

    sub-int/2addr v4, v6

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v2, v2, -0x10

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bF:[[B

    new-array v6, v8, [B

    aput-object v6, v4, v3

    const/4 v4, 0x0

    :goto_d
    if-ge v4, v8, :cond_1b

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bF:[[B

    aget-object v6, v6, v3

    iget-object v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v10, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/2addr v10, v4

    aget-byte v9, v9, v10

    aput-byte v9, v6, v4

    add-int/lit8 v4, v4, 0x1

    goto :goto_d

    :cond_1b
    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/2addr v4, v8

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int/2addr v4, v8

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int/2addr v2, v8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    const/16 v6, 0x200

    new-array v6, v6, [B

    aput-object v6, v4, v3

    const/4 v4, 0x0

    :goto_e
    const/16 v6, 0x100

    if-ge v4, v6, :cond_1c

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    aget-object v6, v6, v3

    const/16 v8, 0x9

    aput-byte v8, v6, v4

    add-int/lit8 v4, v4, 0x1

    goto :goto_e

    :cond_1c
    const/4 v4, 0x0

    const/4 v6, 0x1

    move v14, v6

    move v6, v4

    move v4, v14

    :goto_f
    const/16 v8, 0x8

    if-gt v4, v8, :cond_12

    const/4 v8, 0x0

    move v14, v8

    move v8, v6

    move v6, v14

    :goto_10
    const/4 v9, 0x1

    sub-int v9, v4, v9

    aget-short v9, v5, v9

    if-ge v6, v9, :cond_1e

    aget v9, v7, v8

    const/16 v10, 0x8

    sub-int/2addr v10, v4

    shl-int/2addr v9, v10

    const/4 v10, 0x0

    :goto_11
    const/4 v11, 0x1

    const/16 v12, 0x8

    sub-int/2addr v12, v4

    shl-int/2addr v11, v12

    if-ge v10, v11, :cond_1d

    iget-object v11, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    aget-object v11, v11, v3

    or-int v12, v9, v10

    int-to-byte v13, v4

    aput-byte v13, v11, v12

    iget-object v11, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    aget-object v11, v11, v3

    or-int v12, v9, v10

    add-int/lit16 v12, v12, 0x100

    iget-object v13, p0, Lcom/opera/mini/android/AndroidNativeImage;->bF:[[B

    aget-object v13, v13, v3

    aget-byte v13, v13, v8

    aput-byte v13, v11, v12

    add-int/lit8 v10, v10, 0x1

    goto :goto_11

    :cond_1d
    add-int/lit8 v8, v8, 0x1

    add-int/lit8 v6, v6, 0x1

    goto :goto_10

    :cond_1e
    add-int/lit8 v4, v4, 0x1

    move v6, v8

    goto :goto_f

    :cond_1f
    const/4 v2, 0x0

    goto/16 :goto_3

    :sswitch_3
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v3, 0x4

    if-ge v2, v3, :cond_20

    const/4 v2, -0x2

    goto/16 :goto_3

    :cond_20
    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x2

    aget-byte v2, v2, v3

    and-int/lit16 v2, v2, 0xff

    shl-int/lit8 v2, v2, 0x8

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x3

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    or-int/2addr v2, v3

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v4, v2, 0x2

    if-ge v3, v4, :cond_21

    const/4 v2, -0x2

    goto/16 :goto_3

    :cond_21
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v2, v2, -0x2

    :goto_12
    if-lez v2, :cond_26

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xf0

    if-eqz v3, :cond_22

    const/4 v3, 0x1

    :goto_13
    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v4, v4, v5

    and-int/lit8 v4, v4, 0xf

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x1

    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v6, 0x1

    sub-int/2addr v5, v6

    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v2, v2, -0x1

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    const/16 v6, 0x40

    new-array v6, v6, [I

    aput-object v6, v5, v4

    if-eqz v3, :cond_24

    const/4 v3, 0x0

    :goto_14
    const/16 v5, 0x40

    if-ge v3, v5, :cond_23

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    aget v5, v5, v3

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    aget-object v6, v6, v4

    iget-object v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    shl-int/lit8 v9, v5, 0x1

    add-int/2addr v8, v9

    aget-byte v7, v7, v8

    and-int/lit16 v7, v7, 0xff

    shl-int/lit8 v7, v7, 0x8

    iget-object v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    shl-int/lit8 v5, v5, 0x1

    add-int/2addr v5, v9

    add-int/lit8 v5, v5, 0x1

    aget-byte v5, v8, v5

    and-int/lit16 v5, v5, 0xff

    or-int/2addr v5, v7

    sget-object v7, Lcom/opera/mini/android/AndroidNativeImage;->aX:[I

    aget v7, v7, v3

    mul-int/2addr v5, v7

    aput v5, v6, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_14

    :cond_22
    const/4 v3, 0x0

    goto :goto_13

    :cond_23
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit16 v3, v3, 0x80

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/16 v4, 0x80

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v2, v2, -0x80

    goto :goto_12

    :cond_24
    const/4 v3, 0x0

    :goto_15
    const/16 v5, 0x40

    if-ge v3, v5, :cond_25

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    aget v5, v5, v3

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    aget-object v6, v6, v4

    iget-object v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/2addr v5, v8

    aget-byte v5, v7, v5

    and-int/lit16 v5, v5, 0xff

    sget-object v7, Lcom/opera/mini/android/AndroidNativeImage;->aX:[I

    aget v7, v7, v3

    mul-int/2addr v5, v7

    aput v5, v6, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_15

    :cond_25
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x40

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/16 v4, 0x40

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    add-int/lit8 v2, v2, -0x40

    goto/16 :goto_12

    :cond_26
    const/4 v2, 0x0

    goto/16 :goto_3

    :sswitch_4
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    if-ge v3, v4, :cond_27

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    :cond_27
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x2

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x3

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x6

    if-ge v3, v4, :cond_28

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    :cond_28
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x4

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x5

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bs:I

    const/4 v3, 0x0

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->br:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x6

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x6

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    const/4 v4, 0x4

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    goto/16 :goto_3

    :sswitch_5
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x2

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x2

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v3, 0x6

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    goto/16 :goto_3

    :sswitch_6
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x1

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x1

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_3

    :cond_29
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x2

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x3

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x4

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    const/4 v4, 0x2

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    goto/16 :goto_3

    :pswitch_2
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    mul-int/lit8 v4, v4, 0x3

    if-ge v3, v4, :cond_2a

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    :cond_2a
    const/4 v3, 0x0

    :goto_16
    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    if-ge v3, v4, :cond_2d

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bf:[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v5, v5, v6

    and-int/lit16 v5, v5, 0xff

    aput v5, v4, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v5, v5, 0x1

    aget-byte v4, v4, v5

    and-int/lit16 v4, v4, 0xff

    and-int/lit8 v5, v4, 0xf

    ushr-int/lit8 v4, v4, 0x4

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    if-le v4, v6, :cond_2b

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    :cond_2b
    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    if-le v5, v6, :cond_2c

    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    :cond_2c
    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aput v4, v6, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    aput v5, v4, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v6, v6, 0x2

    aget-byte v5, v5, v6

    and-int/lit16 v5, v5, 0xff

    aput v5, v4, v3

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x3

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v5, 0x3

    sub-int/2addr v4, v5

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    const/4 v5, 0x3

    sub-int/2addr v4, v5

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    add-int/lit8 v3, v3, 0x1

    goto :goto_16

    :cond_2d
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    if-lez v3, :cond_2e

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bd:I

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bc:I

    :cond_2e
    const/4 v3, 0x0

    :goto_17
    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    if-ge v3, v4, :cond_30

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    mul-int/2addr v5, v6

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    add-int/2addr v5, v6

    const/4 v6, 0x1

    sub-int/2addr v5, v6

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    div-int/2addr v5, v6

    add-int/lit8 v5, v5, 0x7

    shr-int/lit8 v5, v5, 0x3

    aput v5, v4, v3

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    if-nez v4, :cond_2f

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    aget v5, v5, v3

    mul-int/lit8 v5, v5, 0x40

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    aget v6, v6, v3

    mul-int/2addr v5, v6

    new-array v5, v5, [B

    aput-object v5, v4, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_17

    :cond_2f
    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    aget v5, v5, v3

    mul-int/lit8 v5, v5, 0x40

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    mul-int/2addr v5, v6

    new-array v5, v5, [B

    aput-object v5, v4, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_17

    :cond_30
    const/4 v3, 0x0

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bx:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    const/4 v4, 0x1

    if-le v3, v4, :cond_31

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    shl-int/lit8 v3, v3, 0x3

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    mul-int/lit8 v5, v5, 0x8

    add-int/2addr v4, v5

    const/4 v5, 0x1

    sub-int/2addr v4, v5

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    shl-int/lit8 v5, v5, 0x3

    div-int/2addr v4, v5

    mul-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bk:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    shl-int/lit8 v3, v3, 0x3

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    mul-int/lit8 v5, v5, 0x8

    add-int/2addr v4, v5

    const/4 v5, 0x1

    sub-int/2addr v4, v5

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    shl-int/lit8 v5, v5, 0x3

    div-int/2addr v4, v5

    mul-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bl:I

    :cond_31
    const/4 v3, 0x2

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    goto/16 :goto_0

    :cond_32
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    const/16 v4, 0xff

    if-ne v3, v4, :cond_34

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x1

    aget-byte v3, v3, v4

    if-eqz v3, :cond_34

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x1

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    const/16 v4, 0xd0

    if-lt v3, v4, :cond_33

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v4, v4, 0x1

    aget-byte v3, v3, v4

    and-int/lit16 v3, v3, 0xff

    const/16 v4, 0xd7

    if-gt v3, v4, :cond_33

    const/4 v3, 0x4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x2

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x2

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    :goto_18
    :pswitch_3
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    const/4 v4, 0x5

    if-ne v3, v4, :cond_0

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x2

    if-ge v3, v4, :cond_32

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    :cond_33
    const/4 v3, 0x2

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    goto :goto_18

    :cond_34
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x1

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x1

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto :goto_18

    :pswitch_4
    const/16 v2, 0x40

    new-array v4, v2, [S

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    if-eqz v2, :cond_35

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aS:[I

    if-nez v2, :cond_35

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    mul-int/2addr v2, v3

    shl-int/lit8 v2, v2, 0x6

    new-array v2, v2, [I

    iput-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aS:[I

    :cond_35
    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    aget v3, v2, v3

    const/4 v2, 0x0

    :goto_19
    const/16 v5, 0x40

    if-ge v2, v5, :cond_36

    const/4 v5, 0x0

    aput-short v5, v4, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_19

    :cond_36
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    iget-object v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->bB:[I

    shl-int/lit8 v8, v3, 0x1

    aget v7, v7, v8

    invoke-virtual {p0, v7}, Lcom/opera/mini/android/AndroidNativeImage;->d(I)I

    move-result v7

    if-gez v7, :cond_38

    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int v9, v2, v9

    sub-int/2addr v8, v9

    iput v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iput v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    move v2, v7

    :goto_1a
    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bt:[I

    aget v2, v2, v3

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    aget v5, v5, v3

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    mul-int/2addr v5, v6

    div-int/2addr v2, v5

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bt:[I

    aget v5, v5, v3

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    aget v6, v6, v3

    iget-object v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v7, v7, v3

    mul-int/2addr v6, v7

    rem-int/2addr v5, v6

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    mul-int/2addr v2, v6

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    rem-int v6, v5, v6

    add-int/2addr v2, v6

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    aget v6, v6, v3

    if-ge v2, v6, :cond_37

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    if-nez v6, :cond_3f

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    div-int/2addr v5, v6

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    aget v6, v6, v3

    mul-int/2addr v5, v6

    shl-int/lit8 v5, v5, 0x3

    add-int/2addr v2, v5

    shl-int/lit8 v6, v2, 0x3

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    aget-object v5, v2, v3

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    aget v2, v2, v3

    shl-int/lit8 v7, v2, 0x3

    move-object v2, p0

    invoke-virtual/range {v2 .. v7}, Lcom/opera/mini/android/AndroidNativeImage;->Code(I[S[BII)V

    :cond_37
    :goto_1b
    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bt:[I

    aget v5, v2, v3

    add-int/lit8 v5, v5, 0x1

    aput v5, v2, v3

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    const/4 v5, 0x1

    sub-int/2addr v2, v5

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bv:I

    rem-int/2addr v2, v5

    if-nez v2, :cond_42

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    if-eqz v2, :cond_42

    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->I(Z)V

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    rem-int/2addr v2, v5

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    div-int/2addr v5, v6

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shr-int/2addr v2, v6

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shr-int/2addr v5, v6

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->aQ:I

    mul-int/2addr v6, v5

    add-int/2addr v2, v6

    const/4 v6, 0x0

    const/4 v7, 0x0

    move v14, v7

    move v7, v2

    move v2, v14

    :goto_1c
    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    shl-int/lit8 v8, v8, 0x3

    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shr-int/2addr v8, v9

    if-ge v2, v8, :cond_41

    add-int v8, v2, v5

    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->aR:I

    if-ge v8, v9, :cond_41

    const/4 v8, 0x0

    :goto_1d
    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    iget v10, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shr-int/2addr v9, v10

    if-ge v8, v9, :cond_40

    iget-object v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->by:[I

    add-int v10, v7, v8

    iget-object v11, p0, Lcom/opera/mini/android/AndroidNativeImage;->aS:[I

    iget v12, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shl-int v12, v8, v12

    add-int/2addr v12, v6

    aget v11, v11, v12

    aput v11, v9, v10

    add-int/lit8 v8, v8, 0x1

    goto :goto_1d

    :cond_38
    invoke-virtual {p0, v7}, Lcom/opera/mini/android/AndroidNativeImage;->c(I)I

    move-result v8

    if-gez v8, :cond_39

    iget v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int v9, v2, v9

    sub-int/2addr v7, v9

    iput v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iput v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    move v2, v8

    goto/16 :goto_1a

    :cond_39
    invoke-static {v7, v8}, Lcom/opera/mini/android/AndroidNativeImage;->Z(II)I

    move-result v7

    const/4 v8, 0x0

    iget-object v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->bH:[S

    aget-short v9, v9, v3

    add-int/2addr v7, v9

    int-to-short v7, v7

    aput-short v7, v4, v8

    iget-object v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->bB:[I

    shl-int/lit8 v8, v3, 0x1

    add-int/lit8 v8, v8, 0x1

    aget v7, v7, v8

    const/4 v8, 0x1

    :goto_1e
    const/16 v9, 0x40

    if-ge v8, v9, :cond_3e

    invoke-virtual {p0, v7}, Lcom/opera/mini/android/AndroidNativeImage;->d(I)I

    move-result v9

    if-gez v9, :cond_3a

    iget v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int v8, v2, v8

    sub-int/2addr v7, v8

    iput v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iput v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    move v2, v9

    goto/16 :goto_1a

    :cond_3a
    and-int/lit8 v10, v9, 0xf

    shr-int/lit8 v9, v9, 0x4

    if-nez v10, :cond_3b

    const/16 v10, 0xf

    if-ne v9, v10, :cond_3e

    add-int/2addr v8, v9

    add-int/lit8 v8, v8, 0x1

    goto :goto_1e

    :cond_3b
    invoke-virtual {p0, v10}, Lcom/opera/mini/android/AndroidNativeImage;->c(I)I

    move-result v11

    if-gez v11, :cond_3c

    iget v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int v8, v2, v8

    sub-int/2addr v7, v8

    iput v7, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iput v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    move v2, v11

    goto/16 :goto_1a

    :cond_3c
    add-int/2addr v8, v9

    const/16 v9, 0x40

    if-lt v8, v9, :cond_3d

    const/16 v8, 0x3f

    :cond_3d
    invoke-static {v10, v11}, Lcom/opera/mini/android/AndroidNativeImage;->Z(II)I

    move-result v9

    int-to-short v9, v9

    aput-short v9, v4, v8

    add-int/lit8 v8, v8, 0x1

    goto :goto_1e

    :cond_3e
    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bH:[S

    const/4 v5, 0x0

    aget-short v5, v4, v5

    aput-short v5, v2, v3

    const/4 v2, 0x0

    goto/16 :goto_1a

    :cond_3f
    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v2, v2, v3

    div-int v2, v5, v2

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    shl-int/lit8 v6, v6, 0x6

    mul-int/2addr v2, v6

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v6, v6, v3

    rem-int/2addr v5, v6

    shl-int/lit8 v5, v5, 0x3

    add-int v6, v2, v5

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    aget-object v5, v2, v3

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v2, v2, v3

    shl-int/lit8 v7, v2, 0x3

    move-object v2, p0

    invoke-virtual/range {v2 .. v7}, Lcom/opera/mini/android/AndroidNativeImage;->Code(I[S[BII)V

    goto/16 :goto_1b

    :cond_40
    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->aQ:I

    add-int/2addr v7, v8

    iget v8, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    shl-int/lit8 v8, v8, 0x3

    iget v9, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    shl-int/2addr v8, v9

    add-int/2addr v6, v8

    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_1c

    :cond_41
    const/4 v2, -0x1

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    :cond_42
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    if-nez v2, :cond_47

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aP:I

    if-nez v2, :cond_43

    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->I(Z)V

    :cond_43
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bx:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bx:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    const/4 v5, 0x1

    if-le v2, v5, :cond_44

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bx:I

    iget v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bl:I

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    mul-int/lit8 v6, v6, 0x8

    div-int/2addr v5, v6

    if-ge v2, v5, :cond_45

    :cond_44
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    const/4 v5, 0x1

    if-ne v2, v5, :cond_46

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bx:I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    aget v5, v5, v3

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    mul-int/2addr v5, v6

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    add-int/2addr v5, v6

    const/4 v6, 0x1

    sub-int/2addr v5, v6

    iget v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    div-int/2addr v5, v6

    add-int/lit8 v5, v5, 0x7

    shr-int/lit8 v5, v5, 0x3

    if-lt v2, v5, :cond_46

    :cond_45
    const/4 v2, 0x2

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    const/4 v2, 0x0

    goto/16 :goto_0

    :cond_46
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->h()V

    :cond_47
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bq:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bq:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bq:I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    aget v5, v5, v3

    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v3, v6, v3

    mul-int/2addr v3, v5

    if-ge v2, v3, :cond_48

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    const/4 v3, 0x1

    if-ne v2, v3, :cond_49

    :cond_48
    const/4 v2, 0x0

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bq:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    if-lt v2, v3, :cond_49

    const/4 v2, 0x0

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->br:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->br:I

    :cond_49
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->br:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bs:I

    if-ne v2, v3, :cond_35

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bs:I

    if-lez v2, :cond_35

    const/4 v2, 0x0

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->br:I

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->i()V

    const/4 v2, 0x5

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    const/4 v2, 0x0

    goto/16 :goto_0

    :pswitch_5
    const/4 v2, 0x0

    goto/16 :goto_2

    :cond_4a
    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v3, v3, 0x2

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v4, 0x2

    sub-int/2addr v3, v4

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v3, 0x1

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bb:I

    goto/16 :goto_0

    :cond_4b
    const/4 v3, -0x2

    if-ne v2, v3, :cond_1

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    goto/16 :goto_2

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_2
        :pswitch_4
        :pswitch_3
        :pswitch_5
    .end packed-switch

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_6
        0xc0 -> :sswitch_0
        0xc1 -> :sswitch_0
        0xc4 -> :sswitch_2
        0xd9 -> :sswitch_5
        0xda -> :sswitch_1
        0xdb -> :sswitch_3
        0xdd -> :sswitch_4
        0xff -> :sswitch_6
    .end sparse-switch
.end method

.method public final Code(I[S[BII)V
    .locals 14

    const/16 v0, 0x40

    new-array v0, v0, [I

    const/4 v1, 0x0

    :goto_0
    const/16 v2, 0x8

    if-ge v1, v2, :cond_1

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v3, v1, 0x8

    aget v2, v2, v3

    aget-short v2, p2, v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v3, v1, 0x10

    aget v2, v2, v3

    aget-short v2, p2, v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v3, v1, 0x18

    aget v2, v2, v3

    aget-short v2, p2, v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v3, v1, 0x20

    aget v2, v2, v3

    aget-short v2, p2, v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v3, v1, 0x28

    aget v2, v2, v3

    aget-short v2, p2, v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v3, v1, 0x30

    aget v2, v2, v3

    aget-short v2, p2, v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v3, v1, 0x38

    aget v2, v2, v3

    aget-short v2, p2, v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    aget v2, v2, v1

    aget-short v2, p2, v2

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v4, v4, p1

    aget-object v3, v3, v4

    aget v3, v3, v1

    mul-int/2addr v2, v3

    aput v2, v0, v1

    add-int/lit8 v3, v1, 0x8

    aput v2, v0, v3

    add-int/lit8 v3, v1, 0x10

    aput v2, v0, v3

    add-int/lit8 v3, v1, 0x18

    aput v2, v0, v3

    add-int/lit8 v3, v1, 0x20

    aput v2, v0, v3

    add-int/lit8 v3, v1, 0x28

    aput v2, v0, v3

    add-int/lit8 v3, v1, 0x30

    aput v2, v0, v3

    add-int/lit8 v3, v1, 0x38

    aput v2, v0, v3

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    aget v2, v2, v1

    aget-short v2, p2, v2

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v4, v4, p1

    aget-object v3, v3, v4

    aget v3, v3, v1

    mul-int/2addr v2, v3

    aput v2, v0, v1

    add-int/lit8 v2, v1, 0x8

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v4, v1, 0x8

    aget v3, v3, v4

    aget-short v3, p2, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v5, v5, p1

    aget-object v4, v4, v5

    add-int/lit8 v5, v1, 0x8

    aget v4, v4, v5

    mul-int/2addr v3, v4

    aput v3, v0, v2

    add-int/lit8 v2, v1, 0x10

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v4, v1, 0x10

    aget v3, v3, v4

    aget-short v3, p2, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v5, v5, p1

    aget-object v4, v4, v5

    add-int/lit8 v5, v1, 0x10

    aget v4, v4, v5

    mul-int/2addr v3, v4

    aput v3, v0, v2

    add-int/lit8 v2, v1, 0x18

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v4, v1, 0x18

    aget v3, v3, v4

    aget-short v3, p2, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v5, v5, p1

    aget-object v4, v4, v5

    add-int/lit8 v5, v1, 0x18

    aget v4, v4, v5

    mul-int/2addr v3, v4

    aput v3, v0, v2

    add-int/lit8 v2, v1, 0x20

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v4, v1, 0x20

    aget v3, v3, v4

    aget-short v3, p2, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v5, v5, p1

    aget-object v4, v4, v5

    add-int/lit8 v5, v1, 0x20

    aget v4, v4, v5

    mul-int/2addr v3, v4

    aput v3, v0, v2

    add-int/lit8 v2, v1, 0x28

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v4, v1, 0x28

    aget v3, v3, v4

    aget-short v3, p2, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v5, v5, p1

    aget-object v4, v4, v5

    add-int/lit8 v5, v1, 0x28

    aget v4, v4, v5

    mul-int/2addr v3, v4

    aput v3, v0, v2

    add-int/lit8 v2, v1, 0x30

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v4, v1, 0x30

    aget v3, v3, v4

    aget-short v3, p2, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v5, v5, p1

    aget-object v4, v4, v5

    add-int/lit8 v5, v1, 0x30

    aget v4, v4, v5

    mul-int/2addr v3, v4

    aput v3, v0, v2

    add-int/lit8 v2, v1, 0x38

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aW:[I

    add-int/lit8 v4, v1, 0x38

    aget v3, v3, v4

    aget-short v3, p2, v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bL:[[I

    iget-object v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    aget v5, v5, p1

    aget-object v4, v4, v5

    add-int/lit8 v5, v1, 0x38

    aget v4, v4, v5

    mul-int/2addr v3, v4

    aput v3, v0, v2

    aget v2, v0, v1

    add-int/lit8 v3, v1, 0x20

    aget v3, v0, v3

    add-int/lit8 v4, v1, 0x10

    aget v4, v0, v4

    add-int/lit8 v5, v1, 0x30

    aget v5, v0, v5

    sub-int/2addr v4, v5

    add-int/lit8 v5, v1, 0x10

    aget v5, v0, v5

    add-int/lit8 v6, v1, 0x30

    aget v6, v0, v6

    add-int/2addr v5, v6

    sub-int v6, v2, v3

    const/16 v7, 0x16a

    invoke-static {v4, v7}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v4

    sub-int/2addr v4, v5

    sub-int v7, v6, v4

    add-int/2addr v4, v6

    add-int/2addr v2, v3

    sub-int v3, v2, v5

    add-int/2addr v2, v5

    add-int/lit8 v5, v1, 0x28

    aget v5, v0, v5

    add-int/lit8 v6, v1, 0x18

    aget v6, v0, v6

    sub-int/2addr v5, v6

    add-int/lit8 v6, v1, 0x8

    aget v6, v0, v6

    add-int/lit8 v8, v1, 0x38

    aget v8, v0, v8

    add-int/2addr v6, v8

    add-int/lit8 v8, v1, 0x18

    aget v8, v0, v8

    add-int/lit8 v9, v1, 0x28

    aget v9, v0, v9

    add-int/2addr v8, v9

    add-int v9, v6, v8

    sub-int/2addr v6, v8

    const/16 v8, 0x16a

    invoke-static {v6, v8}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v6

    add-int/lit8 v8, v1, 0x8

    aget v8, v0, v8

    add-int/lit8 v10, v1, 0x38

    aget v10, v0, v10

    sub-int/2addr v8, v10

    add-int v10, v5, v8

    const/16 v11, 0xc4

    invoke-static {v10, v11}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v10

    neg-int v5, v5

    const/16 v11, 0x115

    invoke-static {v5, v11}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v5

    sub-int/2addr v5, v10

    const/16 v11, 0x29d

    invoke-static {v8, v11}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v8

    sub-int/2addr v8, v10

    sub-int/2addr v8, v9

    sub-int v6, v8, v6

    sub-int/2addr v5, v6

    add-int v10, v2, v9

    aput v10, v0, v1

    add-int/lit8 v10, v1, 0x8

    add-int v11, v4, v8

    aput v11, v0, v10

    add-int/lit8 v10, v1, 0x10

    sub-int v11, v7, v6

    aput v11, v0, v10

    add-int/lit8 v10, v1, 0x18

    sub-int v11, v3, v5

    aput v11, v0, v10

    add-int/lit8 v10, v1, 0x20

    add-int/2addr v3, v5

    aput v3, v0, v10

    add-int/lit8 v3, v1, 0x28

    add-int v5, v7, v6

    aput v5, v0, v3

    add-int/lit8 v3, v1, 0x30

    sub-int/2addr v4, v8

    aput v4, v0, v3

    add-int/lit8 v3, v1, 0x38

    sub-int/2addr v2, v9

    aput v2, v0, v3

    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    :cond_1
    const/4 v1, 0x0

    move v2, v1

    move/from16 v1, p4

    :goto_1
    const/16 v3, 0x40

    if-ge v2, v3, :cond_3

    add-int/lit8 v3, v2, 0x1

    aget v3, v0, v3

    if-nez v3, :cond_2

    add-int/lit8 v3, v2, 0x2

    aget v3, v0, v3

    if-nez v3, :cond_2

    add-int/lit8 v3, v2, 0x3

    aget v3, v0, v3

    if-nez v3, :cond_2

    add-int/lit8 v3, v2, 0x4

    aget v3, v0, v3

    if-nez v3, :cond_2

    add-int/lit8 v3, v2, 0x5

    aget v3, v0, v3

    if-nez v3, :cond_2

    add-int/lit8 v3, v2, 0x6

    aget v3, v0, v3

    if-nez v3, :cond_2

    add-int/lit8 v3, v2, 0x7

    aget v3, v0, v3

    if-nez v3, :cond_2

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    aget v4, v0, v2

    add-int/lit16 v4, v4, 0x400

    shr-int/lit8 v4, v4, 0xb

    add-int/lit16 v4, v4, 0x80

    add-int/lit16 v4, v4, 0x100

    aget-short v3, v3, v4

    int-to-byte v3, v3

    aput-byte v3, p3, v1

    add-int/lit8 v4, v1, 0x1

    aput-byte v3, p3, v4

    add-int/lit8 v4, v1, 0x2

    aput-byte v3, p3, v4

    add-int/lit8 v4, v1, 0x3

    aput-byte v3, p3, v4

    add-int/lit8 v4, v1, 0x4

    aput-byte v3, p3, v4

    add-int/lit8 v4, v1, 0x5

    aput-byte v3, p3, v4

    add-int/lit8 v4, v1, 0x6

    aput-byte v3, p3, v4

    add-int/lit8 v4, v1, 0x7

    aput-byte v3, p3, v4

    :goto_2
    add-int v1, v1, p5

    add-int/lit8 v2, v2, 0x8

    goto :goto_1

    :cond_2
    aget v3, v0, v2

    add-int/lit8 v4, v2, 0x4

    aget v4, v0, v4

    add-int/lit8 v5, v2, 0x2

    aget v5, v0, v5

    add-int/lit8 v6, v2, 0x6

    aget v6, v0, v6

    sub-int/2addr v5, v6

    add-int/lit8 v6, v2, 0x2

    aget v6, v0, v6

    add-int/lit8 v7, v2, 0x6

    aget v7, v0, v7

    add-int/2addr v6, v7

    sub-int v7, v3, v4

    const/16 v8, 0x16a

    invoke-static {v5, v8}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v5

    sub-int/2addr v5, v6

    sub-int v8, v7, v5

    add-int/2addr v5, v7

    add-int/2addr v3, v4

    sub-int v4, v3, v6

    add-int/2addr v3, v6

    add-int/lit8 v6, v2, 0x5

    aget v6, v0, v6

    add-int/lit8 v7, v2, 0x3

    aget v7, v0, v7

    sub-int/2addr v6, v7

    add-int/lit8 v7, v2, 0x1

    aget v7, v0, v7

    add-int/lit8 v9, v2, 0x7

    aget v9, v0, v9

    add-int/2addr v7, v9

    add-int/lit8 v9, v2, 0x3

    aget v9, v0, v9

    add-int/lit8 v10, v2, 0x5

    aget v10, v0, v10

    add-int/2addr v9, v10

    add-int v10, v7, v9

    sub-int/2addr v7, v9

    const/16 v9, 0x16a

    invoke-static {v7, v9}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v7

    add-int/lit8 v9, v2, 0x1

    aget v9, v0, v9

    add-int/lit8 v11, v2, 0x7

    aget v11, v0, v11

    sub-int/2addr v9, v11

    add-int v11, v6, v9

    const/16 v12, 0xc4

    invoke-static {v11, v12}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v11

    neg-int v6, v6

    const/16 v12, 0x115

    invoke-static {v6, v12}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v6

    sub-int/2addr v6, v11

    const/16 v12, 0x29d

    invoke-static {v9, v12}, Lcom/opera/mini/android/AndroidNativeImage;->B(II)I

    move-result v9

    sub-int/2addr v9, v11

    sub-int/2addr v9, v10

    sub-int v7, v9, v7

    sub-int/2addr v6, v7

    sget-object v11, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int v12, v3, v10

    add-int/lit16 v12, v12, 0x400

    shr-int/lit8 v12, v12, 0xb

    add-int/lit16 v12, v12, 0x80

    add-int/lit16 v12, v12, 0x100

    aget-short v11, v11, v12

    int-to-byte v11, v11

    aput-byte v11, p3, v1

    add-int/lit8 v11, v1, 0x1

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int v13, v5, v9

    add-int/lit16 v13, v13, 0x400

    shr-int/lit8 v13, v13, 0xb

    add-int/lit16 v13, v13, 0x80

    add-int/lit16 v13, v13, 0x100

    aget-short v12, v12, v13

    int-to-byte v12, v12

    aput-byte v12, p3, v11

    add-int/lit8 v11, v1, 0x2

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sub-int v13, v8, v7

    add-int/lit16 v13, v13, 0x400

    shr-int/lit8 v13, v13, 0xb

    add-int/lit16 v13, v13, 0x80

    add-int/lit16 v13, v13, 0x100

    aget-short v12, v12, v13

    int-to-byte v12, v12

    aput-byte v12, p3, v11

    add-int/lit8 v11, v1, 0x3

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sub-int v13, v4, v6

    add-int/lit16 v13, v13, 0x400

    shr-int/lit8 v13, v13, 0xb

    add-int/lit16 v13, v13, 0x80

    add-int/lit16 v13, v13, 0x100

    aget-short v12, v12, v13

    int-to-byte v12, v12

    aput-byte v12, p3, v11

    add-int/lit8 v11, v1, 0x4

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int/2addr v4, v6

    add-int/lit16 v4, v4, 0x400

    shr-int/lit8 v4, v4, 0xb

    add-int/lit16 v4, v4, 0x80

    add-int/lit16 v4, v4, 0x100

    aget-short v4, v12, v4

    int-to-byte v4, v4

    aput-byte v4, p3, v11

    add-int/lit8 v4, v1, 0x5

    sget-object v6, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int/2addr v7, v8

    add-int/lit16 v7, v7, 0x400

    shr-int/lit8 v7, v7, 0xb

    add-int/lit16 v7, v7, 0x80

    add-int/lit16 v7, v7, 0x100

    aget-short v6, v6, v7

    int-to-byte v6, v6

    aput-byte v6, p3, v4

    add-int/lit8 v4, v1, 0x6

    sget-object v6, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sub-int/2addr v5, v9

    add-int/lit16 v5, v5, 0x400

    shr-int/lit8 v5, v5, 0xb

    add-int/lit16 v5, v5, 0x80

    add-int/lit16 v5, v5, 0x100

    aget-short v5, v6, v5

    int-to-byte v5, v5

    aput-byte v5, p3, v4

    add-int/lit8 v4, v1, 0x7

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sub-int/2addr v3, v10

    add-int/lit16 v3, v3, 0x400

    shr-int/lit8 v3, v3, 0xb

    add-int/lit16 v3, v3, 0x80

    add-int/lit16 v3, v3, 0x100

    aget-short v3, v5, v3

    int-to-byte v3, v3

    aput-byte v3, p3, v4

    goto/16 :goto_2

    :cond_3
    return-void
.end method

.method public final Code(ZI)V
    .locals 1

    invoke-virtual {p0, p2}, Lcom/opera/mini/android/AndroidNativeImage;->i(I)Z

    move-result v0

    if-eqz v0, :cond_0

    if-eqz p1, :cond_1

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->run()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method public final Code(LCode;Ljava/lang/String;[B)Z
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0, p2}, Lcom/opera/mini/android/AndroidNativeImage;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cr:LB;

    if-eqz v0, :cond_3

    const/4 v0, 0x1

    move v2, v0

    :goto_0
    const-string v0, "socket://"

    invoke-virtual {v1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    if-nez v0, :cond_0

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->b(Ljava/lang/String;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cr:LB;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->bt()Ljava/io/DataOutputStream;

    move-result-object v1

    iput-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    iput-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cf:Ljava/io/DataOutputStream;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->bu()Ljava/io/DataInputStream;

    move-result-object v0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cc:Ljava/io/DataInputStream;

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cc:Ljava/io/DataInputStream;

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ce:Ljava/io/DataInputStream;

    :cond_0
    array-length v0, p3

    invoke-virtual {p0, p3, v0}, Lcom/opera/mini/android/AndroidNativeImage;->I([BI)V

    if-eqz p1, :cond_1

    invoke-virtual {p1}, LCode;->d()V

    :cond_1
    invoke-virtual {p0, p1}, Lcom/opera/mini/android/AndroidNativeImage;->J(LCode;)V

    :cond_2
    :goto_1
    return v2

    :cond_3
    const/4 v0, 0x0

    move v2, v0

    goto :goto_0

    :cond_4
    const-string v0, ""

    if-eqz p1, :cond_9

    iget-object v0, p1, LCode;->c:[Ljava/lang/Object;

    const/16 v3, 0x35

    aget-object p2, v0, v3

    check-cast p2, Ljava/lang/String;

    const/16 v3, 0x2a

    aget-object v0, v0, v3

    check-cast v0, Ljava/lang/String;

    move-object v3, v0

    move-object v0, p2

    :goto_2
    const/4 v4, 0x0

    sget-boolean v5, Lcom/opera/mini/android/AndroidNativeImage;->ca:Z

    if-eqz v5, :cond_1a

    if-nez v0, :cond_a

    const-string v0, ""

    :goto_3
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    :goto_4
    sget-object v3, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    const-string v4, "POST"

    invoke-virtual {v3, v1, v4}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;Ljava/lang/String;)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v3

    const-string v4, "http://10.0.0.172"

    invoke-virtual {v1, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    const/4 v1, 0x0

    :goto_5
    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    array-length v4, v4

    if-ge v1, v4, :cond_16

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v4, v4, v1

    const/4 v5, 0x0

    aget-object v5, v4, v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    sget v6, Lcom/opera/mini/android/AndroidNativeImage;->bQ:I

    if-ne v5, v6, :cond_15

    const/4 v5, 0x2

    :goto_6
    array-length v6, v4

    if-ge v5, v6, :cond_15

    aget-object v6, v4, v5

    const-string v7, "http://"

    invoke-virtual {v6, v7}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_14

    invoke-static {v6}, Lcom/opera/mini/android/AndroidNativeImage;->c(Ljava/lang/String;)[Ljava/lang/Object;

    move-result-object v6

    const/4 v7, 0x1

    aget-object p2, v6, v7

    check-cast p2, Ljava/lang/String;

    const-string v7, "10.0.0.172"

    invoke-virtual {p2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_14

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v4, ":"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const/4 v4, 0x2

    aget-object v4, v6, v4

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_7
    if-eqz v1, :cond_5

    const-string v4, "X-Online-Host"

    invoke-virtual {v3, v4, v1}, Lcom/opera/mini/generic/LogicalDocument;->J(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    iput-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->cr:LB;

    const-string v1, "Content-Type"

    const-string v4, "application/xml"

    invoke-virtual {v3, v1, v4}, Lcom/opera/mini/generic/LogicalDocument;->J(Ljava/lang/String;Ljava/lang/String;)V

    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->ca:Z

    if-eqz v1, :cond_6

    const-string v1, "X-OperaMini-URL"

    invoke-virtual {v3, v1, v0}, Lcom/opera/mini/generic/LogicalDocument;->J(Ljava/lang/String;Ljava/lang/String;)V

    :cond_6
    invoke-virtual {v3}, Lcom/opera/mini/generic/LogicalDocument;->bt()Ljava/io/DataOutputStream;

    move-result-object v0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cf:Ljava/io/DataOutputStream;

    array-length v0, p3

    invoke-virtual {p0, p3, v0}, Lcom/opera/mini/android/AndroidNativeImage;->I([BI)V

    invoke-virtual {p0, p1}, Lcom/opera/mini/android/AndroidNativeImage;->J(LCode;)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    invoke-virtual {v0}, Ljava/io/DataOutputStream;->close()V

    if-eqz p1, :cond_7

    invoke-virtual {p1}, LCode;->d()V

    :cond_7
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    invoke-virtual {v3}, Lcom/opera/mini/generic/LogicalDocument;->bu()Ljava/io/DataInputStream;

    move-result-object v0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cc:Ljava/io/DataInputStream;

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cc:Ljava/io/DataInputStream;

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ce:Ljava/io/DataInputStream;

    invoke-virtual {v3}, Lcom/opera/mini/generic/LogicalDocument;->bk()I

    move-result v0

    const/16 v1, 0x1f6

    if-ne v0, v1, :cond_8

    sget-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-nez v1, :cond_17

    const/4 v1, 0x2

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->l(I)V

    :goto_8
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bZ:Z

    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    :cond_8
    const/16 v1, 0x193

    if-ne v0, v1, :cond_2

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    :goto_9
    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cc:Ljava/io/DataInputStream;

    invoke-virtual {v1}, Ljava/io/DataInputStream;->read()I

    move-result v1

    if-ltz v1, :cond_18

    int-to-char v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_9

    :cond_9
    const-string v3, "server:test"

    move-object v9, v3

    move-object v3, v0

    move-object v0, v9

    goto/16 :goto_2

    :cond_a
    const-string v4, "https://"

    invoke-virtual {v0, v4}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    const/16 v5, 0x2f

    add-int/lit8 v6, v4, 0x8

    invoke-virtual {v0, v5, v6}, Ljava/lang/String;->indexOf(II)I

    move-result v5

    new-instance v6, Ljava/lang/StringBuffer;

    invoke-direct {v6, v0}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    if-eqz v3, :cond_b

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v7

    if-lez v7, :cond_b

    const/4 v7, -0x1

    if-ne v4, v7, :cond_b

    const/16 v7, 0x3f

    invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v7

    invoke-virtual {v7, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_b
    const/4 v3, -0x1

    if-eq v4, v3, :cond_c

    const/4 v3, -0x1

    if-eq v5, v3, :cond_c

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->length()I

    move-result v3

    invoke-virtual {v6, v5, v3}, Ljava/lang/StringBuffer;->delete(II)Ljava/lang/StringBuffer;

    :cond_c
    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->length()I

    move-result v5

    const/4 v7, 0x1

    sub-int/2addr v5, v7

    move v9, v5

    move v5, v3

    move v3, v9

    :goto_a
    const/4 v7, -0x1

    if-le v3, v7, :cond_13

    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->charAt(I)C

    move-result v7

    const/16 v8, 0x21

    if-lt v7, v8, :cond_d

    const/16 v8, 0x7e

    if-le v7, v8, :cond_f

    :cond_d
    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->deleteCharAt(I)Ljava/lang/StringBuffer;

    :cond_e
    :goto_b
    add-int/lit8 v3, v3, -0x1

    goto :goto_a

    :cond_f
    const/16 v8, 0x3d

    if-ne v7, v8, :cond_11

    const/4 v5, 0x1

    :cond_10
    :goto_c
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v7

    if-le v3, v7, :cond_e

    if-eqz v5, :cond_e

    if-eqz v4, :cond_e

    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->deleteCharAt(I)Ljava/lang/StringBuffer;

    goto :goto_b

    :cond_11
    const/16 v8, 0x26

    if-ne v7, v8, :cond_12

    const/4 v4, 0x0

    move v5, v4

    goto :goto_c

    :cond_12
    const/16 v8, 0x2e

    if-ne v7, v8, :cond_10

    const/4 v4, 0x1

    goto :goto_c

    :cond_13
    const/16 v0, 0x7f

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->setLength(I)V

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_3

    :cond_14
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_6

    :cond_15
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_5

    :cond_16
    const/4 v1, 0x0

    goto/16 :goto_7

    :cond_17
    const/4 v1, 0x1

    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bY:Z

    goto/16 :goto_8

    :cond_18
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->length()I

    move-result v0

    if-gtz v0, :cond_19

    :cond_19
    const/4 v0, 0x0

    const/4 v1, 0x4

    invoke-virtual {p0, v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ZI)V

    goto/16 :goto_1

    :cond_1a
    move-object v0, v4

    goto/16 :goto_4
.end method

.method public final Code(LCode;I)[B
    .locals 18
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    sget-object v6, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v6

    :try_start_0
    move-object/from16 v0, p1

    iget-object v0, v0, LCode;->c:[Ljava/lang/Object;

    move-object v7, v0

    move-object/from16 v0, p1

    iget-object v0, v0, LCode;->d:[I

    move-object v8, v0

    const/4 v4, 0x0

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->co:Z

    move v5, v0

    if-nez v5, :cond_22

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v5, 0x0

    invoke-static {v5}, Lcom/opera/mini/android/AndroidNativeImage;->C(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\u0000"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "ragemosh"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\u0000"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->getBytes()[B

    move-result-object v4

    const/16 v5, 0x21

    add-int/lit8 v5, v5, 0x8

    array-length v4, v4

    add-int/lit8 v4, v4, 0x29

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    array-length v5, v5

    add-int/2addr v4, v5

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->hasAlpha:Z

    move v5, v0

    if-eqz v5, :cond_2

    const/4 v5, 0x1

    invoke-static {v5}, Lcom/opera/mini/android/AndroidNativeImage;->C(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    :goto_0
    add-int/2addr v4, v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    move-object v5, v0

    if-nez v5, :cond_3

    const/4 v5, 0x2

    :goto_1
    add-int/2addr v4, v5

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->cw:[B

    array-length v5, v5

    add-int/2addr v4, v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cl:Lf;

    move-object v5, v0

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    const/4 v5, 0x0

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->cl:Lf;

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    move v5, v0

    if-lez v5, :cond_0

    const/4 v5, 0x0

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    const/4 v5, 0x0

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    const/4 v5, 0x0

    move v0, v5

    move-object/from16 v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    move-object v5, v0

    if-eqz v5, :cond_4

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    move-object v5, v0

    array-length v5, v5

    add-int/lit8 v5, v5, 0x8

    add-int/2addr v4, v5

    :goto_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    move-object v5, v0

    if-nez v5, :cond_22

    add-int/lit8 v4, v4, 0x8

    move v9, v4

    :goto_3
    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    array-length v4, v4

    const/4 v5, 0x1

    if-le v4, v5, :cond_7

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    array-length v4, v4

    add-int/lit8 v4, v4, 0x1

    new-array v4, v4, [B

    const/4 v5, 0x0

    sget-object v10, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    array-length v10, v10

    int-to-byte v10, v10

    aput-byte v10, v4, v5

    const/4 v5, 0x0

    :goto_4
    sget-object v10, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    array-length v10, v10

    if-ge v5, v10, :cond_6

    sget-object v10, Lcom/opera/mini/android/AndroidNativeImage;->bP:[[Ljava/lang/String;

    aget-object v10, v10, v5

    const/4 v11, 0x0

    aget-object v10, v10, v11

    invoke-static {v10}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v10

    int-to-byte v10, v10

    add-int/lit8 v11, v5, 0x1

    sget v12, Lcom/opera/mini/android/AndroidNativeImage;->bR:I

    if-ne v12, v10, :cond_1

    or-int/lit16 v10, v10, 0x80

    int-to-byte v10, v10

    :cond_1
    aput-byte v10, v4, v11

    add-int/lit8 v5, v5, 0x1

    goto :goto_4

    :cond_2
    const/4 v5, 0x0

    goto/16 :goto_0

    :cond_3
    const/4 v5, 0x0

    goto :goto_1

    :cond_4
    const/4 v5, 0x0

    :goto_5
    const/16 v9, 0x58

    if-ge v5, v9, :cond_5

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v9, v0

    const/4 v10, 0x0

    aput-object v10, v9, v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    move-object v9, v0

    const/4 v10, 0x0

    aput v10, v9, v5

    add-int/lit8 v5, v5, 0x1

    goto :goto_5

    :cond_5
    const/4 v5, 0x0

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    goto :goto_2

    :catchall_0
    move-exception v4

    monitor-exit v6
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v4

    :cond_6
    const/16 v5, 0x51

    :try_start_1
    aput-object v4, v7, v5

    :cond_7
    const/4 v4, 0x0

    const/16 v5, 0xf

    aput v5, v8, v4

    const/16 v4, 0x28

    const/4 v5, 0x0

    invoke-static {v5}, Lcom/opera/mini/android/AndroidNativeImage;->C(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v7, v4

    const/16 v4, 0x21

    const/4 v5, 0x2

    invoke-static {v5}, Lcom/opera/mini/android/AndroidNativeImage;->C(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v7, v4

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->an:[B

    if-nez v4, :cond_8

    const/4 v4, 0x0

    invoke-static {v4}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Z)V

    :cond_8
    const/4 v4, 0x6

    sget-object v5, Lcom/opera/mini/android/AndroidNativeImage;->an:[B

    aput-object v5, v7, v4

    invoke-virtual/range {p0 .. p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v4

    if-eqz v4, :cond_9

    sget-boolean v4, Lcom/opera/mini/android/AndroidNativeImage;->cG:Z

    if-nez v4, :cond_9

    const/16 v4, 0x18

    aget v5, v8, v4

    const/high16 v10, 0x2

    or-int/2addr v5, v10

    aput v5, v8, v4

    :cond_9
    const/4 v4, 0x4

    const/4 v5, 0x0

    move v10, v5

    move v11, v4

    :goto_6
    const/16 v4, 0x58

    if-ge v10, v4, :cond_11

    aget-object v4, v7, v10

    if-eqz v4, :cond_e

    aget-object v4, v7, v10

    instance-of v4, v4, [B

    if-eqz v4, :cond_b

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v4, v4, v10

    instance-of v4, v4, [B

    if-eqz v4, :cond_a

    aget-object v4, v7, v10

    check-cast v4, [B

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v5, v0

    aget-object v5, v5, v10

    check-cast v5, [B

    invoke-static {v4, v5}, Lcom/opera/mini/android/AndroidNativeImage;->Code([B[B)Z

    move-result v4

    if-nez v4, :cond_b

    :cond_a
    aget-object v4, v7, v10

    check-cast v4, [B

    array-length v4, v4

    add-int/lit8 v4, v4, 0x7

    add-int/2addr v4, v11

    :goto_7
    add-int/lit8 v5, v10, 0x1

    move v10, v5

    move v11, v4

    goto :goto_6

    :cond_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v4, v4, v10

    if-eqz v4, :cond_c

    aget-object v4, v7, v10

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v5, v0

    aget-object v5, v5, v10

    invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_21

    :cond_c
    aget-object v4, v7, v10

    instance-of v4, v4, Ljava/lang/String;

    if-eqz v4, :cond_21

    aget-object v4, v7, v10

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Lcom/opera/mini/generic/LogicalDocument;->u(Ljava/lang/String;)I

    move-result v4

    const/16 v5, 0xfe

    if-gt v4, v5, :cond_d

    const/4 v5, 0x4

    :goto_8
    add-int/2addr v4, v5

    add-int/2addr v4, v11

    goto :goto_7

    :cond_d
    const/4 v5, 0x7

    goto :goto_8

    :cond_e
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    move-object v4, v0

    aget v4, v4, v10

    aget v5, v8, v10

    if-ne v4, v5, :cond_f

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v4, v4, v10

    if-eqz v4, :cond_21

    :cond_f
    aget v4, v8, v10

    const/16 v5, 0xfe

    if-gt v4, v5, :cond_10

    add-int/lit8 v4, v11, 0x4

    goto :goto_7

    :cond_10
    add-int/lit8 v4, v11, 0x7

    goto :goto_7

    :cond_11
    const/4 v4, 0x2

    shl-int/lit8 v4, v4, 0x3

    add-int/lit8 v4, v11, 0x10

    const v5, 0xfff9

    div-int v5, v11, v5

    mul-int/lit8 v5, v5, 0x8

    add-int/2addr v4, v5

    add-int v5, v9, v4

    new-instance v9, Le;

    invoke-direct {v9, v5}, Le;-><init>(I)V

    new-instance v10, Ljava/io/DataOutputStream;

    invoke-direct {v10, v9}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    const/4 v4, 0x0

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->co:Z

    move v12, v0

    if-nez v12, :cond_14

    const/4 v4, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    move-object v12, v0

    if-nez v12, :cond_12

    const/4 v4, 0x1

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write(I)V

    const/4 v4, 0x2

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write(I)V

    const/4 v4, 0x2

    :cond_12
    const/4 v12, 0x1

    invoke-virtual {v10, v12}, Ljava/io/DataOutputStream;->write(I)V

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->cA:[B

    const/4 v13, 0x0

    const/16 v14, 0x8

    invoke-virtual {v10, v12, v13, v14}, Ljava/io/DataOutputStream;->write([BII)V

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->cs:[I

    const/4 v13, 0x0

    aget v12, v12, v13

    invoke-virtual {v10, v12}, Ljava/io/DataOutputStream;->writeInt(I)V

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    invoke-virtual {v10, v12}, Ljava/io/DataOutputStream;->write([B)V

    move-object v0, v10

    move/from16 v1, p2

    invoke-virtual {v0, v1}, Ljava/io/DataOutputStream;->writeShort(I)V

    sget-object v12, Lcom/opera/mini/android/AndroidNativeImage;->cw:[B

    invoke-virtual {v10, v12}, Ljava/io/DataOutputStream;->write([B)V

    invoke-virtual {v9}, Le;->size()I

    move-result v12

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->hasAlpha:Z

    move v13, v0

    if-eqz v13, :cond_17

    const/4 v13, 0x1

    invoke-static {v13}, Lcom/opera/mini/android/AndroidNativeImage;->C(I)Ljava/lang/String;

    move-result-object v13

    :goto_9
    invoke-virtual {v10, v13}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cC:Lcom/opera/mini/generic/LogicalDocument;

    move-object v13, v0

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v14

    invoke-virtual {v9}, Le;->size()I

    move-result v15

    sub-int/2addr v15, v4

    invoke-virtual {v13, v14, v4, v15}, Lcom/opera/mini/generic/LogicalDocument;->Code([BII)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cD:Lcom/opera/mini/generic/LogicalDocument;

    move-object v13, v0

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v14

    invoke-virtual {v9}, Le;->size()I

    move-result v15

    sub-int/2addr v15, v4

    invoke-virtual {v13, v14, v4, v15}, Lcom/opera/mini/generic/LogicalDocument;->Code([BII)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cC:Lcom/opera/mini/generic/LogicalDocument;

    move-object v4, v0

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v13

    invoke-virtual {v9}, Le;->size()I

    move-result v14

    const/16 v15, 0x10

    invoke-virtual {v4, v13, v14, v15}, Lcom/opera/mini/generic/LogicalDocument;->I([BII)V

    invoke-virtual {v9}, Le;->size()I

    move-result v4

    add-int/lit8 v4, v4, 0x10

    invoke-virtual {v9, v4}, Le;->Code(I)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cE:Lcom/opera/mini/generic/LogicalDocument;

    move-object v4, v0

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v13

    invoke-virtual {v9}, Le;->size()I

    move-result v14

    sub-int/2addr v14, v12

    invoke-virtual {v4, v13, v12, v14}, Lcom/opera/mini/generic/LogicalDocument;->J([BII)V

    invoke-virtual {v9}, Le;->size()I

    move-result v4

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v13, 0x0

    invoke-static {v13}, Lcom/opera/mini/android/AndroidNativeImage;->C(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "\u0000"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "ragemosh"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "\u0000"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->getBytes()[B

    move-result-object v12

    const/16 v13, 0x80

    const/4 v14, 0x3

    array-length v15, v12

    invoke-static {v9, v13, v14, v15}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    invoke-virtual {v10, v12}, Ljava/io/DataOutputStream;->write([B)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    move-object v12, v0

    if-eqz v12, :cond_13

    const/16 v12, 0xf

    const/4 v13, 0x0

    const/16 v14, 0x8

    invoke-static {v9, v12, v13, v14}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    move-object v12, v0

    invoke-virtual {v10, v12}, Ljava/io/DataOutputStream;->write([B)V

    :cond_13
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    move-object v12, v0

    if-nez v12, :cond_14

    const/16 v12, 0x10

    const/4 v13, 0x0

    const/4 v14, 0x0

    invoke-static {v9, v12, v13, v14}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    :cond_14
    move v12, v4

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    move v4, v0

    add-int/lit8 v4, v4, 0x1

    move v0, v4

    move-object/from16 v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    const/4 v4, 0x5

    move-object/from16 v0, p1

    iget v0, v0, LCode;->Z:I

    move v13, v0

    const/4 v14, 0x0

    invoke-static {v9, v4, v13, v14}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    const/16 v4, 0x16

    move-object/from16 v0, p1

    iget v0, v0, LCode;->Z:I

    move v13, v0

    const v14, 0xfff9

    invoke-static {v11, v14}, Ljava/lang/Math;->min(II)I

    move-result v14

    invoke-static {v9, v4, v13, v14}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    const/4 v4, 0x4

    sub-int v4, v11, v4

    const/4 v13, 0x0

    move-object/from16 v0, p1

    move v1, v13

    invoke-virtual {v0, v1}, LCode;->Code(Z)Ljava/util/Hashtable;

    move-result-object v13

    invoke-static {v13}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/util/Hashtable;)I

    move-result v13

    add-int/2addr v4, v13

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->writeInt(I)V

    const/4 v4, 0x0

    move v13, v4

    :goto_a
    const/16 v4, 0x58

    if-ge v13, v4, :cond_1f

    aget-object v4, v7, v13

    if-eqz v4, :cond_1c

    aget-object v4, v7, v13

    instance-of v4, v4, [B

    if-eqz v4, :cond_18

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v4, v4, v13

    instance-of v4, v4, [B

    if-eqz v4, :cond_15

    aget-object p2, v7, v13

    check-cast p2, [B

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v4, v4, v13

    check-cast v4, [B

    move-object/from16 v0, p2

    move-object v1, v4

    invoke-static {v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code([B[B)Z

    move-result v4

    if-nez v4, :cond_18

    :cond_15
    const/4 v4, 0x1

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write(I)V

    invoke-virtual {v10, v13}, Ljava/io/DataOutputStream;->writeShort(I)V

    aget-object p2, v7, v13

    check-cast p2, [B

    move-object/from16 v0, p2

    array-length v0, v0

    move v4, v0

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->writeInt(I)V

    aget-object p2, v7, v13

    check-cast p2, [B

    move-object v0, v10

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Ljava/io/DataOutputStream;->write([B)V

    :cond_16
    :goto_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v14, v7, v13

    aput-object v14, v4, v13

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    move-object v4, v0

    aget v14, v8, v13

    aput v14, v4, v13

    add-int/lit8 v4, v13, 0x1

    move v13, v4

    goto :goto_a

    :cond_17
    const-string v13, ""

    goto/16 :goto_9

    :cond_18
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v4, v4, v13

    if-eqz v4, :cond_19

    aget-object v4, v7, v13

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v14, v0

    aget-object v14, v14, v13

    invoke-virtual {v4, v14}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_16

    :cond_19
    aget-object v4, v7, v13

    instance-of v4, v4, Ljava/lang/String;

    if-eqz v4, :cond_16

    aget-object p2, v7, v13

    check-cast p2, Ljava/lang/String;

    invoke-static/range {p2 .. p2}, Lcom/opera/mini/generic/LogicalDocument;->u(Ljava/lang/String;)I

    move-result v4

    const/16 v14, 0xfe

    if-gt v4, v14, :cond_1a

    const/4 v4, 0x0

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write(I)V

    shr-int/lit8 v4, v13, 0x10

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write(I)V

    invoke-virtual {v9}, Le;->size()I

    move-result v4

    aget-object p2, v7, v13

    check-cast p2, Ljava/lang/String;

    move-object v0, v10

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v14

    int-to-byte v15, v13

    aput-byte v15, v14, v4

    goto :goto_b

    :cond_1a
    const/4 v4, 0x1

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write(I)V

    invoke-virtual {v10, v13}, Ljava/io/DataOutputStream;->writeShort(I)V

    aget-object p2, v7, v13

    check-cast p2, Ljava/lang/String;

    invoke-static/range {p2 .. p2}, Lcom/opera/mini/generic/LogicalDocument;->u(Ljava/lang/String;)I

    move-result v4

    new-array v4, v4, [B

    const/4 v14, 0x0

    const/4 v15, 0x0

    move/from16 v17, v15

    move v15, v14

    move/from16 v14, v17

    :goto_c
    invoke-virtual/range {p2 .. p2}, Ljava/lang/String;->length()I

    move-result v16

    move v0, v14

    move/from16 v1, v16

    if-ge v0, v1, :cond_1b

    move-object/from16 v0, p2

    move v1, v14

    invoke-virtual {v0, v1}, Ljava/lang/String;->charAt(I)C

    move-result v16

    move/from16 v0, v16

    move-object v1, v4

    move v2, v15

    invoke-static {v0, v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->I(I[BI)I

    move-result v16

    add-int v15, v15, v16

    add-int/lit8 v14, v14, 0x1

    goto :goto_c

    :cond_1b
    array-length v14, v4

    invoke-virtual {v10, v14}, Ljava/io/DataOutputStream;->writeInt(I)V

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write([B)V

    goto/16 :goto_b

    :cond_1c
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    move-object v4, v0

    aget v4, v4, v13

    aget v14, v8, v13

    if-ne v4, v14, :cond_1d

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->cn:[Ljava/lang/Object;

    move-object v4, v0

    aget-object v4, v4, v13

    if-eqz v4, :cond_16

    :cond_1d
    aget v4, v8, v13

    const/16 v14, 0xfe

    if-gt v4, v14, :cond_1e

    const/4 v14, 0x2

    invoke-virtual {v10, v14}, Ljava/io/DataOutputStream;->write(I)V

    invoke-virtual {v10, v13}, Ljava/io/DataOutputStream;->writeShort(I)V

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->write(I)V

    goto/16 :goto_b

    :cond_1e
    const/4 v14, 0x3

    invoke-virtual {v10, v14}, Ljava/io/DataOutputStream;->write(I)V

    invoke-virtual {v10, v13}, Ljava/io/DataOutputStream;->writeShort(I)V

    invoke-virtual {v10, v4}, Ljava/io/DataOutputStream;->writeInt(I)V

    goto/16 :goto_b

    :cond_1f
    invoke-virtual {v9}, Le;->size()I

    move-result v4

    sub-int/2addr v4, v11

    move v7, v4

    move v4, v11

    :goto_d
    const v8, 0xfff9

    if-le v4, v8, :cond_20

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v8

    const v10, 0xfff9

    add-int/2addr v10, v7

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v11

    const v13, 0xfff9

    add-int/2addr v13, v7

    add-int/lit8 v13, v13, 0x8

    const v14, 0xfff9

    sub-int v14, v4, v14

    invoke-static {v8, v10, v11, v13, v14}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    const v8, 0xfff9

    add-int/lit8 v8, v8, 0x8

    add-int/2addr v7, v8

    const v8, 0xfff9

    sub-int/2addr v4, v8

    const/16 v8, 0x8

    sub-int v8, v7, v8

    invoke-virtual {v9, v8}, Le;->Code(I)V

    const/16 v8, 0x16

    move-object/from16 v0, p1

    iget v0, v0, LCode;->Z:I

    move v10, v0

    const v11, 0xfff9

    invoke-static {v4, v11}, Ljava/lang/Math;->min(II)I

    move-result v11

    invoke-static {v9, v8, v10, v11}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    goto :goto_d

    :cond_20
    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v4

    move-object/from16 v0, p0

    move-object v1, v4

    move v2, v12

    move v3, v5

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Z([BII)V

    const/4 v4, 0x1

    move v0, v4

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->co:Z

    invoke-virtual {v9}, Le;->Code()[B

    move-result-object v4

    monitor-exit v6
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-object v4

    :cond_21
    move v4, v11

    goto/16 :goto_7

    :cond_22
    move v9, v4

    goto/16 :goto_3
.end method

.method public final declared-synchronized I(LCode;)V
    .locals 1

    monitor-enter p0

    if-eqz p1, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->removeElement(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final I(Z)V
    .locals 23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    move v2, v0

    shl-int/lit8 v2, v2, 0x3

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bx:I

    move v3, v0

    mul-int/2addr v3, v2

    const/4 v4, 0x3

    new-array v4, v4, [I

    const/4 v5, 0x3

    new-array v5, v5, [I

    const/4 v6, 0x3

    new-array v6, v6, [I

    const/4 v7, 0x3

    new-array v7, v7, [I

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    move v8, v0

    const/4 v9, 0x3

    if-ne v8, v9, :cond_0

    const/4 v8, 0x0

    const/4 v9, 0x0

    aput v9, v4, v8

    const/4 v8, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    move-object v9, v0

    const/4 v10, 0x0

    aget v9, v9, v10

    shl-int/lit8 v9, v9, 0xb

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    move v10, v0

    div-int/2addr v9, v10

    aput v9, v5, v8

    const/4 v8, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v9, v0

    const/4 v10, 0x0

    aget v9, v9, v10

    shl-int/lit8 v9, v9, 0xb

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v10, v0

    div-int/2addr v9, v10

    aput v9, v7, v8

    const/4 v8, 0x1

    const/4 v9, 0x0

    aput v9, v4, v8

    const/4 v8, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    move-object v9, v0

    const/4 v10, 0x1

    aget v9, v9, v10

    shl-int/lit8 v9, v9, 0xb

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    move v10, v0

    div-int/2addr v9, v10

    aput v9, v5, v8

    const/4 v8, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v9, v0

    const/4 v10, 0x1

    aget v9, v9, v10

    shl-int/lit8 v9, v9, 0xb

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v10, v0

    div-int/2addr v9, v10

    aput v9, v7, v8

    const/4 v8, 0x2

    const/4 v9, 0x0

    aput v9, v4, v8

    const/4 v8, 0x2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    move-object v9, v0

    const/4 v10, 0x2

    aget v9, v9, v10

    shl-int/lit8 v9, v9, 0xb

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bi:I

    move v10, v0

    div-int/2addr v9, v10

    aput v9, v5, v8

    const/4 v8, 0x2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v9, v0

    const/4 v10, 0x2

    aget v9, v9, v10

    shl-int/lit8 v9, v9, 0xb

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v10, v0

    div-int/2addr v9, v10

    aput v9, v7, v8

    :cond_0
    if-nez p1, :cond_4

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    move v8, v0

    move v0, v8

    move-object/from16 v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    :cond_1
    :goto_0
    if-eqz p1, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->aS:[I

    move-object v8, v0

    :goto_1
    const/4 v9, 0x0

    :goto_2
    if-ge v9, v2, :cond_f

    add-int v10, v3, v9

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    move v11, v0

    if-ge v10, v11, :cond_b

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->be:I

    move v10, v0

    const/4 v11, 0x3

    if-ne v10, v11, :cond_b

    add-int v10, v3, v9

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    move v11, v0

    mul-int/2addr v10, v11

    if-eqz p1, :cond_3

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    move-object v11, v0

    const/4 v12, 0x0

    aget v11, v11, v12

    add-int/lit8 v11, v11, 0x1

    and-int/lit8 v11, v11, -0x2

    shl-int/lit8 v11, v11, 0x3

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    move v12, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bv:I

    move v13, v0

    div-int/2addr v12, v13

    add-int/lit8 v12, v12, 0x1

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v13, v0

    mul-int/2addr v12, v13

    shl-int/lit8 v12, v12, 0x3

    sub-int/2addr v11, v12

    add-int/2addr v10, v11

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    move v11, v0

    const/4 v12, -0x1

    if-ne v11, v12, :cond_2

    move v0, v10

    move-object/from16 v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    :cond_2
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v10, v0

    mul-int/2addr v10, v9

    shl-int/lit8 v10, v10, 0x3

    :cond_3
    const/4 v11, 0x0

    aget v11, v4, v11

    shr-int/lit8 v11, v11, 0xb

    if-eqz p1, :cond_7

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v12, v0

    const/4 v13, 0x0

    move/from16 v22, v13

    move-object v13, v12

    move/from16 v12, v22

    :goto_3
    aget v12, v13, v12

    shl-int/lit8 v12, v12, 0x3

    mul-int/2addr v11, v12

    const/4 v12, 0x0

    aget v13, v4, v12

    const/4 v14, 0x0

    aget v14, v5, v14

    add-int/2addr v13, v14

    aput v13, v4, v12

    const/4 v12, 0x0

    const/4 v13, 0x0

    aput v13, v6, v12

    const/4 v12, 0x1

    aget v12, v4, v12

    shr-int/lit8 v12, v12, 0xb

    if-eqz p1, :cond_8

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v13, v0

    const/4 v14, 0x1

    move/from16 v22, v14

    move-object v14, v13

    move/from16 v13, v22

    :goto_4
    aget v13, v14, v13

    shl-int/lit8 v13, v13, 0x3

    mul-int/2addr v12, v13

    const/4 v13, 0x1

    aget v14, v4, v13

    const/4 v15, 0x1

    aget v15, v5, v15

    add-int/2addr v14, v15

    aput v14, v4, v13

    const/4 v13, 0x1

    const/4 v14, 0x0

    aput v14, v6, v13

    const/4 v13, 0x2

    aget v13, v4, v13

    shr-int/lit8 v13, v13, 0xb

    if-eqz p1, :cond_9

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v14, v0

    const/4 v15, 0x2

    move/from16 v22, v15

    move-object v15, v14

    move/from16 v14, v22

    :goto_5
    aget v14, v15, v14

    shl-int/lit8 v14, v14, 0x3

    mul-int/2addr v13, v14

    const/4 v14, 0x2

    aget v15, v4, v14

    const/16 v16, 0x2

    aget v16, v5, v16

    add-int v15, v15, v16

    aput v15, v4, v14

    const/4 v14, 0x2

    const/4 v15, 0x0

    aput v15, v6, v14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v14, v0

    const/4 v15, 0x0

    aget v14, v14, v15

    const/4 v15, 0x2

    if-ne v14, v15, :cond_d

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v14, v0

    const/4 v15, 0x1

    aget v14, v14, v15

    const/4 v15, 0x1

    if-ne v14, v15, :cond_d

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v14, v0

    const/4 v15, 0x2

    aget v14, v14, v15

    const/4 v15, 0x1

    if-ne v14, v15, :cond_d

    const/4 v14, 0x0

    move/from16 v22, v14

    move v14, v10

    move/from16 v10, v22

    :goto_6
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    move v15, v0

    shr-int/lit8 v15, v15, 0x1

    if-ge v10, v15, :cond_a

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object v15, v0

    const/16 v16, 0x0

    aget-object v15, v15, v16

    shl-int/lit8 v16, v10, 0x1

    add-int v16, v16, v11

    aget-byte v15, v15, v16

    and-int/lit16 v15, v15, 0xff

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object/from16 v16, v0

    const/16 v17, 0x1

    aget-object v16, v16, v17

    add-int v17, v12, v10

    aget-byte v16, v16, v17

    move/from16 v0, v16

    and-int/lit16 v0, v0, 0xff

    move/from16 v16, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object/from16 v17, v0

    const/16 v18, 0x2

    aget-object v17, v17, v18

    add-int v18, v13, v10

    aget-byte v17, v17, v18

    move/from16 v0, v17

    and-int/lit16 v0, v0, 0xff

    move/from16 v17, v0

    sget-object v18, Lcom/opera/mini/android/AndroidNativeImage;->aU:[S

    aget-short v18, v18, v17

    sget-object v19, Lcom/opera/mini/android/AndroidNativeImage;->aV:[S

    aget-short v19, v19, v16

    add-int/lit8 v16, v16, -0x80

    add-int/lit8 v17, v17, -0x80

    move/from16 v0, v16

    mul-int/lit16 v0, v0, 0x2c1

    move/from16 v16, v0

    move/from16 v0, v17

    mul-int/lit16 v0, v0, 0x5b7

    move/from16 v17, v0

    add-int v16, v16, v17

    move/from16 v0, v16

    add-int/lit16 v0, v0, 0x400

    move/from16 v16, v0

    shr-int/lit8 v16, v16, 0xb

    sget-object v17, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int v20, v15, v18

    move/from16 v0, v20

    add-int/lit16 v0, v0, 0x100

    move/from16 v20, v0

    aget-short v17, v17, v20

    sget-object v20, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sub-int v21, v15, v16

    move/from16 v0, v21

    add-int/lit16 v0, v0, 0x100

    move/from16 v21, v0

    aget-short v20, v20, v21

    sget-object v21, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int v15, v15, v19

    add-int/lit16 v15, v15, 0x100

    aget-short v15, v21, v15

    add-int/lit8 v21, v14, 0x1

    shl-int/lit8 v17, v17, 0x10

    shl-int/lit8 v20, v20, 0x8

    or-int v17, v17, v20

    or-int v15, v15, v17

    aput v15, v8, v14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object v14, v0

    const/4 v15, 0x0

    aget-object v14, v14, v15

    shl-int/lit8 v15, v10, 0x1

    add-int/2addr v15, v11

    add-int/lit8 v15, v15, 0x1

    aget-byte v14, v14, v15

    and-int/lit16 v14, v14, 0xff

    sget-object v15, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int v17, v14, v18

    move/from16 v0, v17

    add-int/lit16 v0, v0, 0x100

    move/from16 v17, v0

    aget-short v15, v15, v17

    sget-object v17, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sub-int v16, v14, v16

    move/from16 v0, v16

    add-int/lit16 v0, v0, 0x100

    move/from16 v16, v0

    aget-short v16, v17, v16

    sget-object v17, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    add-int v14, v14, v19

    add-int/lit16 v14, v14, 0x100

    aget-short v14, v17, v14

    add-int/lit8 v17, v21, 0x1

    shl-int/lit8 v15, v15, 0x10

    shl-int/lit8 v16, v16, 0x8

    or-int v15, v15, v16

    or-int/2addr v14, v15

    aput v14, v8, v21

    add-int/lit8 v10, v10, 0x1

    move/from16 v14, v17

    goto/16 :goto_6

    :cond_4
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    move v8, v0

    if-nez v8, :cond_5

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    move v8, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v9, v0

    shl-int/lit8 v9, v9, 0x3

    rem-int/2addr v8, v9

    :goto_7
    move v0, v8

    move-object/from16 v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    move v8, v0

    if-nez v8, :cond_1

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v8, v0

    shl-int/lit8 v8, v8, 0x3

    move v0, v8

    move-object/from16 v1, p0

    iput v0, v1, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    goto/16 :goto_0

    :cond_5
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v8, v0

    shl-int/lit8 v8, v8, 0x3

    goto :goto_7

    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->by:[I

    move-object v8, v0

    goto/16 :goto_1

    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    move-object v12, v0

    const/4 v13, 0x0

    move/from16 v22, v13

    move-object v13, v12

    move/from16 v12, v22

    goto/16 :goto_3

    :cond_8
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    move-object v13, v0

    const/4 v14, 0x1

    move/from16 v22, v14

    move-object v14, v13

    move/from16 v13, v22

    goto/16 :goto_4

    :cond_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bm:[I

    move-object v14, v0

    const/4 v15, 0x2

    move/from16 v22, v15

    move-object v15, v14

    move/from16 v14, v22

    goto/16 :goto_5

    :cond_a
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    move v10, v0

    and-int/lit8 v10, v10, 0x1

    if-eqz v10, :cond_b

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    move v10, v0

    if-nez v10, :cond_b

    if-eqz p1, :cond_c

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    move v10, v0

    mul-int/lit8 v10, v10, 0x8

    :goto_8
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object v15, v0

    const/16 v16, 0x0

    aget-object v15, v15, v16

    add-int/2addr v11, v10

    const/16 v16, 0x1

    sub-int v11, v11, v16

    aget-byte v11, v15, v11

    and-int/lit16 v11, v11, 0xff

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object v15, v0

    const/16 v16, 0x1

    aget-object v15, v15, v16

    const/16 v16, 0x1

    sub-int v16, v10, v16

    shr-int/lit8 v16, v16, 0x1

    add-int v12, v12, v16

    aget-byte v12, v15, v12

    and-int/lit16 v12, v12, 0xff

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object v15, v0

    const/16 v16, 0x2

    aget-object v15, v15, v16

    const/16 v16, 0x1

    sub-int v10, v10, v16

    shr-int/lit8 v10, v10, 0x1

    add-int/2addr v10, v13

    aget-byte v10, v15, v10

    and-int/lit16 v10, v10, 0xff

    sget-object v13, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sget-object v15, Lcom/opera/mini/android/AndroidNativeImage;->aV:[S

    aget-short v15, v15, v12

    add-int/2addr v15, v11

    add-int/lit16 v15, v15, 0x100

    aget-short v13, v13, v15

    add-int/lit8 v12, v12, -0x80

    add-int/lit8 v10, v10, -0x80

    sget-object v15, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    mul-int/lit16 v12, v12, 0x2c1

    move v0, v10

    mul-int/lit16 v0, v0, 0x5b7

    move/from16 v16, v0

    add-int v12, v12, v16

    add-int/lit16 v12, v12, 0x400

    shr-int/lit8 v12, v12, 0xb

    sub-int v12, v11, v12

    add-int/lit16 v12, v12, 0x100

    aget-short v12, v15, v12

    sget-object v15, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sget-object v16, Lcom/opera/mini/android/AndroidNativeImage;->aU:[S

    add-int/lit16 v10, v10, 0x80

    aget-short v10, v16, v10

    add-int/2addr v10, v11

    add-int/lit16 v10, v10, 0x100

    aget-short v10, v15, v10

    shl-int/lit8 v10, v10, 0x10

    shl-int/lit8 v11, v12, 0x8

    or-int/2addr v10, v11

    or-int/2addr v10, v13

    aput v10, v8, v14

    :cond_b
    add-int/lit8 v9, v9, 0x1

    goto/16 :goto_2

    :cond_c
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    move v10, v0

    goto :goto_8

    :cond_d
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v14, v0

    const/4 v15, 0x0

    aget v14, v14, v15

    const/4 v15, 0x1

    if-ne v14, v15, :cond_e

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v14, v0

    const/4 v15, 0x1

    aget v14, v14, v15

    const/4 v15, 0x1

    if-ne v14, v15, :cond_e

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    move-object v14, v0

    const/4 v15, 0x2

    aget v14, v14, v15

    const/4 v15, 0x1

    if-ne v14, v15, :cond_e

    const/4 v14, 0x0

    move/from16 v22, v14

    move v14, v10

    move/from16 v10, v22

    :goto_9
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    move v15, v0

    if-ge v10, v15, :cond_b

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object v15, v0

    const/16 v16, 0x0

    aget-object v15, v15, v16

    add-int v16, v11, v10

    aget-byte v15, v15, v16

    and-int/lit16 v15, v15, 0xff

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object/from16 v16, v0

    const/16 v17, 0x1

    aget-object v16, v16, v17

    add-int v17, v12, v10

    aget-byte v16, v16, v17

    move/from16 v0, v16

    and-int/lit16 v0, v0, 0xff

    move/from16 v16, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object/from16 v17, v0

    const/16 v18, 0x2

    aget-object v17, v17, v18

    add-int v18, v13, v10

    aget-byte v17, v17, v18

    move/from16 v0, v17

    and-int/lit16 v0, v0, 0xff

    move/from16 v17, v0

    sget-object v18, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sget-object v19, Lcom/opera/mini/android/AndroidNativeImage;->aV:[S

    aget-short v19, v19, v16

    add-int v19, v19, v15

    move/from16 v0, v19

    add-int/lit16 v0, v0, 0x100

    move/from16 v19, v0

    aget-short v18, v18, v19

    add-int/lit8 v16, v16, -0x80

    add-int/lit8 v17, v17, -0x80

    sget-object v19, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    move/from16 v0, v16

    mul-int/lit16 v0, v0, 0x2c1

    move/from16 v16, v0

    move/from16 v0, v17

    mul-int/lit16 v0, v0, 0x5b7

    move/from16 v20, v0

    add-int v16, v16, v20

    move/from16 v0, v16

    add-int/lit16 v0, v0, 0x400

    move/from16 v16, v0

    shr-int/lit8 v16, v16, 0xb

    sub-int v16, v15, v16

    move/from16 v0, v16

    add-int/lit16 v0, v0, 0x100

    move/from16 v16, v0

    aget-short v16, v19, v16

    sget-object v19, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sget-object v20, Lcom/opera/mini/android/AndroidNativeImage;->aU:[S

    move/from16 v0, v17

    add-int/lit16 v0, v0, 0x80

    move/from16 v17, v0

    aget-short v17, v20, v17

    add-int v15, v15, v17

    add-int/lit16 v15, v15, 0x100

    aget-short v15, v19, v15

    add-int/lit8 v17, v14, 0x1

    shl-int/lit8 v15, v15, 0x10

    shl-int/lit8 v16, v16, 0x8

    or-int v15, v15, v16

    or-int v15, v15, v18

    aput v15, v8, v14

    add-int/lit8 v10, v10, 0x1

    move/from16 v14, v17

    goto/16 :goto_9

    :cond_e
    const/4 v14, 0x0

    move/from16 v22, v14

    move v14, v10

    move/from16 v10, v22

    :goto_a
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    move v15, v0

    if-ge v10, v15, :cond_b

    const/4 v15, 0x0

    aget v15, v6, v15

    shr-int/lit8 v15, v15, 0xb

    const/16 v16, 0x0

    aget v17, v6, v16

    const/16 v18, 0x0

    aget v18, v7, v18

    add-int v17, v17, v18

    aput v17, v6, v16

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object/from16 v16, v0

    const/16 v17, 0x0

    aget-object v16, v16, v17

    add-int/2addr v15, v11

    aget-byte v15, v16, v15

    const/16 v16, 0x1

    aget v16, v6, v16

    shr-int/lit8 v16, v16, 0xb

    const/16 v17, 0x1

    aget v18, v6, v17

    const/16 v19, 0x1

    aget v19, v7, v19

    add-int v18, v18, v19

    aput v18, v6, v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object/from16 v17, v0

    const/16 v18, 0x1

    aget-object v17, v17, v18

    add-int v16, v16, v12

    aget-byte v16, v17, v16

    const/16 v17, 0x2

    aget v17, v6, v17

    shr-int/lit8 v17, v17, 0xb

    const/16 v18, 0x2

    aget v19, v6, v18

    const/16 v20, 0x2

    aget v20, v7, v20

    add-int v19, v19, v20

    aput v19, v6, v18

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opera/mini/android/AndroidNativeImage;->bw:[[B

    move-object/from16 v18, v0

    const/16 v19, 0x2

    aget-object v18, v18, v19

    add-int v17, v17, v13

    aget-byte v17, v18, v17

    sget-object v18, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sget-object v19, Lcom/opera/mini/android/AndroidNativeImage;->aV:[S

    aget-short v19, v19, v16

    add-int v19, v19, v15

    move/from16 v0, v19

    add-int/lit16 v0, v0, 0x100

    move/from16 v19, v0

    aget-short v18, v18, v19

    add-int/lit8 v16, v16, -0x80

    add-int/lit8 v17, v17, -0x80

    sget-object v19, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    move/from16 v0, v16

    mul-int/lit16 v0, v0, 0x2c1

    move/from16 v16, v0

    move/from16 v0, v17

    mul-int/lit16 v0, v0, 0x5b7

    move/from16 v20, v0

    add-int v16, v16, v20

    move/from16 v0, v16

    add-int/lit16 v0, v0, 0x400

    move/from16 v16, v0

    shr-int/lit8 v16, v16, 0xb

    sub-int v16, v15, v16

    move/from16 v0, v16

    add-int/lit16 v0, v0, 0x100

    move/from16 v16, v0

    aget-short v16, v19, v16

    sget-object v19, Lcom/opera/mini/android/AndroidNativeImage;->aT:[S

    sget-object v20, Lcom/opera/mini/android/AndroidNativeImage;->aU:[S

    move/from16 v0, v17

    add-int/lit16 v0, v0, 0x80

    move/from16 v17, v0

    aget-short v17, v20, v17

    add-int v15, v15, v17

    add-int/lit16 v15, v15, 0x100

    aget-short v15, v19, v15

    add-int/lit8 v17, v14, 0x1

    shl-int/lit8 v15, v15, 0x10

    shl-int/lit8 v16, v16, 0x8

    or-int v15, v15, v16

    or-int v15, v15, v18

    aput v15, v8, v14

    add-int/lit8 v10, v10, 0x1

    move/from16 v14, v17

    goto/16 :goto_a

    :cond_f
    return-void
.end method

.method public final I([BI)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v1, p2}, Ljava/io/DataOutputStream;->write([BII)V

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    invoke-virtual {v0}, Ljava/io/DataOutputStream;->flush()V

    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ci:J

    return-void
.end method

.method public final J(II)I
    .locals 4

    const/4 v3, 0x1

    sub-int v0, p2, v3

    invoke-virtual {p0, p2}, Lcom/opera/mini/android/AndroidNativeImage;->c(I)I

    move-result v1

    if-gez v1, :cond_1

    move v0, v1

    :goto_0
    return v0

    :cond_0
    shl-int/lit8 v1, v1, 0x1

    or-int/2addr v1, v2

    :cond_1
    const/16 v2, 0x10

    if-ge v0, v2, :cond_2

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bC:[[I

    aget-object v2, v2, p1

    aget v2, v2, v0

    if-le v1, v2, :cond_2

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {p0, v3}, Lcom/opera/mini/android/AndroidNativeImage;->c(I)I

    move-result v2

    if-gez v2, :cond_0

    move v0, v2

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bE:[[S

    aget-object v2, v2, p1

    aget-short v2, v2, v0

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bD:[[I

    aget-object v3, v3, p1

    aget v0, v3, v0

    sub-int v0, v1, v0

    add-int/2addr v0, v2

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bF:[[B

    aget-object v1, v1, p1

    aget-byte v0, v1, v0

    and-int/lit16 v0, v0, 0xff

    goto :goto_0
.end method

.method public final J(LCode;)V
    .locals 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    if-nez p1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v0, 0x1

    invoke-virtual {p1, v0}, LCode;->Code(Z)Ljava/util/Hashtable;

    move-result-object v3

    if-eqz v3, :cond_0

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->getPriority()I

    move-result v4

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/Thread;->setPriority(I)V

    new-instance v5, Le;

    const/16 v0, 0x8

    add-int/lit16 v0, v0, 0x1000

    invoke-direct {v5, v0}, Le;-><init>(I)V

    new-instance v6, Ljava/io/DataOutputStream;

    invoke-direct {v6, v5}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    const/16 v0, 0x16

    iget v1, p1, LCode;->Z:I

    const/4 v2, 0x7

    invoke-static {v5, v0, v1, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    const/4 v0, 0x1

    invoke-virtual {v6, v0}, Ljava/io/DataOutputStream;->write(I)V

    const/16 v0, 0x9

    invoke-virtual {v6, v0}, Ljava/io/DataOutputStream;->writeShort(I)V

    invoke-static {v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/util/Hashtable;)I

    move-result v0

    const/4 v1, 0x7

    sub-int/2addr v0, v1

    invoke-virtual {v6, v0}, Ljava/io/DataOutputStream;->writeInt(I)V

    invoke-virtual {v5}, Le;->Code()[B

    move-result-object v0

    const/4 v1, 0x0

    const/16 v2, 0x8

    add-int/lit8 v2, v2, 0x7

    invoke-virtual {p0, v0, v1, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Z([BII)V

    invoke-virtual {v5}, Le;->Code()[B

    move-result-object v0

    const/16 v1, 0x8

    add-int/lit8 v1, v1, 0x7

    invoke-virtual {p0, v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->I([BI)V

    const/4 v0, 0x0

    invoke-virtual {v5, v0}, Le;->Code(I)V

    const/4 v0, 0x0

    :try_start_0
    invoke-virtual {v3}, Ljava/util/Hashtable;->keys()Ljava/util/Enumeration;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    move-result-object v7

    move-object v8, v0

    :goto_1
    :try_start_1
    invoke-interface {v7}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v7}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/Object;

    invoke-static {v0}, Lcom/opera/mini/generic/LogicalDocument;->u(Ljava/lang/String;)I

    move-result v9

    const/4 v2, 0x0

    aget-object v2, v1, v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v2}, Lcom/opera/mini/generic/LogicalDocument;->u(Ljava/lang/String;)I

    move-result v2

    add-int/2addr v2, v9

    add-int/lit8 v2, v2, 0x8

    const/16 v9, 0x16

    iget v10, p1, LCode;->Z:I

    invoke-static {v5, v9, v10, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Le;III)V

    invoke-virtual {v6, v0}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    const/4 v0, 0x0

    aget-object v0, v1, v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v6, v0}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    const/4 v0, 0x1

    aget-object v0, v1, v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v9

    invoke-virtual {v6, v9}, Ljava/io/DataOutputStream;->writeInt(I)V

    invoke-virtual {v5}, Le;->Code()[B

    move-result-object v0

    const/4 v10, 0x0

    add-int/lit8 v11, v2, 0x8

    invoke-virtual {p0, v0, v10, v11}, Lcom/opera/mini/android/AndroidNativeImage;->Z([BII)V

    invoke-virtual {v5}, Le;->Code()[B

    move-result-object v0

    add-int/lit8 v2, v2, 0x8

    invoke-virtual {p0, v0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->I([BI)V

    const/4 v0, 0x0

    invoke-virtual {v5, v0}, Le;->Code(I)V

    sget-object v2, Lcom/opera/mini/generic/LogicalDocument;->bg:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v0, 0x0

    aget-object v0, v1, v0

    check-cast v0, Ljava/lang/String;

    const/4 v1, 0x0

    const/4 v10, 0x1

    invoke-virtual {v2, v0, v1, v10}, Lcom/opera/mini/generic/LogicalDocument;->Code(Ljava/lang/String;ZI)Lcom/opera/mini/generic/LogicalDocument;

    move-result-object v0

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->by()Ljava/io/InputStream;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    move-result-object v0

    :try_start_2
    invoke-virtual {v5}, Le;->Code()[B

    move-result-object v1

    const/4 v2, 0x0

    :goto_2
    iget-boolean v8, p1, LCode;->f:Z

    if-nez v8, :cond_2

    const/16 v8, 0x8

    const/16 v10, 0x1000

    invoke-virtual {v0, v1, v8, v10}, Ljava/io/InputStream;->read([BII)I

    move-result v8

    if-ltz v8, :cond_2

    if-ge v2, v9, :cond_2

    add-int/2addr v2, v8

    const/4 v10, 0x0

    const/16 v11, 0x16

    iget v12, p1, LCode;->Z:I

    invoke-static {v1, v10, v11, v12, v8}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BIIII)V

    const/4 v10, 0x0

    add-int/lit8 v11, v8, 0x8

    invoke-virtual {p0, v1, v10, v11}, Lcom/opera/mini/android/AndroidNativeImage;->Z([BII)V

    add-int/lit8 v8, v8, 0x8

    invoke-virtual {p0, v1, v8}, Lcom/opera/mini/android/AndroidNativeImage;->I([BI)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_2

    :catchall_0
    move-exception v1

    move-object v13, v1

    move-object v1, v0

    move-object v0, v13

    :goto_3
    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v1

    invoke-virtual {v1, v4}, Ljava/lang/Thread;->setPriority(I)V

    throw v0

    :cond_2
    :try_start_3
    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    move-object v8, v0

    goto/16 :goto_1

    :cond_3
    invoke-static {v8}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0, v4}, Ljava/lang/Thread;->setPriority(I)V

    goto/16 :goto_0

    :catchall_1
    move-exception v1

    move-object v13, v1

    move-object v1, v0

    move-object v0, v13

    goto :goto_3

    :catchall_2
    move-exception v0

    move-object v1, v8

    goto :goto_3
.end method

.method public final declared-synchronized Z(LCode;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    monitor-enter p0

    :try_start_0
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->p()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    const/4 v1, 0x2

    invoke-virtual {p0, v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ZI)V

    iget-boolean v0, p1, LCode;->f:Z

    if-eqz v0, :cond_0

    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_0
    monitor-exit p0

    return-void
.end method

.method public final Z(Z)V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(ZI)V

    return-void
.end method

.method public final Z([BII)V
    .locals 5

    move v0, p2

    :goto_0
    if-ge v0, p3, :cond_0

    add-int/lit8 v1, v0, 0x4

    invoke-static {p1, v1}, Lcom/opera/mini/generic/LogicalDocument;->b([BI)I

    move-result v1

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cC:Lcom/opera/mini/generic/LogicalDocument;

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    add-int/lit8 v4, v3, 0x1

    iput v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bA:I

    invoke-virtual {v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->b(I)V

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cC:Lcom/opera/mini/generic/LogicalDocument;

    add-int/lit8 v3, v0, 0x4

    add-int/lit8 v4, v1, 0x2

    invoke-virtual {v2, p1, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->Code([BII)V

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cC:Lcom/opera/mini/generic/LogicalDocument;

    const/4 v3, 0x4

    invoke-virtual {v2, p1, v0, v3}, Lcom/opera/mini/generic/LogicalDocument;->I([BII)V

    add-int/lit8 v1, v1, 0x6

    add-int/2addr v0, v1

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cE:Lcom/opera/mini/generic/LogicalDocument;

    sub-int v1, p3, p2

    invoke-virtual {v0, p1, p2, v1}, Lcom/opera/mini/generic/LogicalDocument;->J([BII)V

    return-void
.end method

.method public final c(I)I
    .locals 2

    if-nez p1, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    if-ge v0, p1, :cond_1

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->j()V

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    if-ge v0, p1, :cond_1

    const/4 v0, -0x2

    goto :goto_0

    :cond_1
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    const/16 v1, 0x20

    sub-int/2addr v1, p1

    ushr-int/2addr v0, v1

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    shl-int/2addr v1, p1

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    sub-int/2addr v1, p1

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    goto :goto_0
.end method

.method public copyPixels(Ljava/nio/ByteBuffer;)V
    .locals 1

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->Code:Landroid/graphics/Bitmap;

    invoke-virtual {v0, p1}, Landroid/graphics/Bitmap;->copyPixelsToBuffer(Ljava/nio/Buffer;)V

    return-void
.end method

.method public final d(I)I
    .locals 3

    const/16 v2, 0x8

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    if-ge v0, v2, :cond_0

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->j()V

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    if-ge v0, v2, :cond_0

    const/4 v0, 0x1

    invoke-virtual {p0, p1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->J(II)I

    move-result v0

    :goto_0
    return v0

    :cond_0
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    ushr-int/lit8 v0, v0, 0x18

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    aget-object v1, v1, p1

    aget-byte v1, v1, v0

    if-gt v1, v2, :cond_1

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    shl-int/2addr v2, v1

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    sub-int v1, v2, v1

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bG:[[B

    aget-object v1, v1, p1

    add-int/lit16 v0, v0, 0x100

    aget-byte v0, v1, v0

    and-int/lit16 v0, v0, 0xff

    goto :goto_0

    :cond_1
    const/16 v0, 0x9

    invoke-virtual {p0, p1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->J(II)I

    move-result v0

    goto :goto_0
.end method

.method public final e(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    if-lez v0, :cond_0

    const/16 v0, 0x2e

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    if-lez v0, :cond_0

    const/16 v1, 0x3a

    invoke-virtual {p1, v1}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    invoke-virtual {p1, v1}, Ljava/lang/String;->charAt(I)C

    move-result v1

    const/16 v2, 0x39

    if-le v1, v2, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v2, 0x0

    invoke-virtual {p1, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const/16 v2, 0x2d

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    move-object v0, p1

    goto :goto_0
.end method

.method public final declared-synchronized f(I)V
    .locals 1

    monitor-enter p0

    :try_start_0
    invoke-virtual {p0, p1}, Lcom/opera/mini/android/AndroidNativeImage;->g(I)LCode;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->I(LCode;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized g(I)LCode;
    .locals 3

    monitor-enter p0

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    :try_start_0
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LCode;

    iget v2, v0, LCode;->Z:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-ne v2, p1, :cond_0

    :goto_1
    monitor-exit p0

    return-object v0

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final h()V
    .locals 6

    const/4 v2, 0x1

    const/4 v5, 0x0

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    if-ne v0, v2, :cond_0

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    aget v0, v0, v1

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    aget v0, v1, v0

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bz:I

    mul-int/2addr v0, v1

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    add-int/2addr v0, v1

    sub-int/2addr v0, v2

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    div-int/2addr v0, v1

    add-int/lit8 v0, v0, 0x7

    shr-int/lit8 v0, v0, 0x3

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bt:[I

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bp:I

    aget v1, v1, v2

    aput v5, v0, v1

    :goto_0
    return-void

    :cond_0
    iput v5, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    move v0, v5

    :goto_1
    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bn:I

    if-ge v0, v1, :cond_1

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bg:[I

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    aget v3, v3, v0

    aget v2, v2, v3

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bh:[I

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    aget v4, v4, v0

    aget v3, v3, v4

    mul-int/2addr v2, v3

    add-int/2addr v1, v2

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bt:[I

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bo:[I

    aget v2, v2, v0

    aput v5, v1, v2

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_1
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bv:I

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bk:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bj:I

    mul-int/lit8 v2, v2, 0x8

    div-int/2addr v1, v2

    mul-int/2addr v0, v1

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bu:I

    goto :goto_0
.end method

.method public final i()V
    .locals 3

    const/4 v2, 0x0

    move v0, v2

    :goto_0
    const/4 v1, 0x3

    if-ge v0, v1, :cond_0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bH:[S

    aput-short v2, v1, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iput v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    return-void
.end method

.method public final i(I)Z
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    if-ne v0, p0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    const/4 v2, 0x0

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-virtual {v0, v2, v3}, Ljava/util/Vector;->setElementAt(Ljava/lang/Object;I)V

    :cond_0
    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-nez v0, :cond_1

    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bZ:Z

    if-eqz v0, :cond_4

    :cond_1
    move v2, v6

    :goto_0
    move v3, v5

    :goto_1
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-ge v3, v0, :cond_6

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LCode;

    iget-boolean v4, v0, LCode;->f:Z

    if-nez v4, :cond_5

    invoke-virtual {v0}, LCode;->B()Z

    move-result v4

    if-nez v4, :cond_5

    if-nez v2, :cond_2

    invoke-virtual {v0}, LCode;->C()Z

    move-result v4

    if-nez v4, :cond_5

    :cond_2
    if-nez v2, :cond_3

    invoke-virtual {v0}, LCode;->a()V

    :cond_3
    invoke-virtual {v0}, LCode;->Z()V

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;)V

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_4
    move v2, v5

    goto :goto_0

    :cond_5
    invoke-virtual {v0, p1}, LCode;->J(I)V

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_6
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->removeAllElements()V

    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    if-nez v0, :cond_7

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cd:Ljava/io/DataOutputStream;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cc:Ljava/io/DataInputStream;

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->e(I)V

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;)V

    monitor-exit v1

    move v0, v6

    :goto_2
    return v0

    :cond_7
    monitor-exit v1

    move v0, v5

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public final j()V
    .locals 5

    const/16 v4, 0x18

    const/4 v3, 0x1

    :goto_0
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    if-gt v0, v4, :cond_0

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    aget-byte v0, v0, v1

    and-int/lit16 v0, v0, 0xff

    const/16 v1, 0xff

    if-ne v0, v1, :cond_2

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    const/4 v2, 0x2

    if-lt v1, v2, :cond_0

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v2, v2, 0x1

    aget-byte v1, v1, v2

    if-eqz v1, :cond_1

    :cond_0
    return-void

    :cond_1
    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int/2addr v1, v3

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    :cond_2
    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aZ:I

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    sub-int/2addr v1, v3

    iput v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->ba:I

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    sub-int v2, v4, v2

    shl-int/2addr v0, v2

    or-int/2addr v0, v1

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    add-int/lit8 v0, v0, 0x8

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    goto :goto_0
.end method

.method public final declared-synchronized j(I)V
    .locals 2

    monitor-enter p0

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cj:J

    iput p1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final k()LCode;
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x0

    sget-object v1, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v1

    :try_start_0
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    if-ne p0, v0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cI:Ljava/util/Vector;

    const/4 v2, 0x0

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-virtual {v0, v2, v3}, Ljava/util/Vector;->setElementAt(Ljava/lang/Object;I)V

    :cond_0
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    if-eqz v0, :cond_4

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    iget v2, v2, LCode;->l:I

    if-eq v0, v2, :cond_4

    :cond_1
    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cq:Z

    if-eqz v0, :cond_3

    move v2, v4

    :goto_0
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-ge v2, v0, :cond_3

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LCode;

    iget v3, v0, LCode;->I:I

    if-eqz v3, :cond_2

    monitor-exit v1

    :goto_1
    return-object v0

    :cond_2
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cq:Z

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;I)V

    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->e(I)V

    monitor-exit v1

    move-object v0, v5

    goto :goto_1

    :cond_4
    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    if-eqz v0, :cond_5

    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->e(I)V

    monitor-exit v1

    move-object v0, v5

    goto :goto_1

    :cond_5
    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    iget-object v2, v0, LCode;->b:LCode;

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cg:LCode;

    const/4 v2, 0x1

    :goto_2
    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->g(I)LCode;

    move-result-object v3

    if-eqz v3, :cond_6

    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    :cond_6
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->cb:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    invoke-virtual {v0, p0, v2}, LCode;->Code(Lcom/opera/mini/android/AndroidNativeImage;I)V

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->e(I)V

    monitor-exit v1

    goto :goto_1

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public final m()V
    .locals 2

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ch:J

    return-void
.end method

.method public final declared-synchronized n()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    monitor-enter p0

    :try_start_0
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->o()V

    const/4 v0, 0x0

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized o()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    if-eqz v0, :cond_0

    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_0
    :try_start_1
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->m()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized p()Z
    .locals 4

    monitor-enter p0

    :try_start_0
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    if-lez v0, :cond_2

    iget-wide v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ch:J

    iget-wide v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cj:J

    cmp-long v0, v0, v2

    if-ltz v0, :cond_0

    iget-wide v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ch:J

    iget-wide v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ci:J

    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v0

    const-wide/32 v2, 0x3a980

    add-long/2addr v0, v2

    :goto_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-wide v2

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-gez v0, :cond_2

    const/4 v0, 0x1

    :goto_1
    monitor-exit p0

    return v0

    :cond_0
    :try_start_1
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-wide v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cj:J

    :goto_2
    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bM:I

    int-to-long v2, v2

    add-long/2addr v0, v2

    goto :goto_0

    :cond_1
    iget-wide v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cj:J

    iget-wide v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->ci:J

    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move-result-wide v0

    goto :goto_2

    :cond_2
    const/4 v0, 0x0

    goto :goto_1

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final r()Z
    .locals 2

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    iget v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    aget-object v0, v0, v1

    const-string v1, "socket://"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public run()V
    .locals 14

    const/4 v12, 0x4

    const/4 v11, 0x2

    const/16 v10, 0x8

    const/4 v9, 0x1

    const/4 v8, 0x0

    :try_start_0
    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cf:Ljava/io/DataOutputStream;

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/OutputStream;)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ce:Ljava/io/DataInputStream;

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/io/InputStream;)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cr:LB;

    invoke-interface {v0}, LB;->Code()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->config:I

    invoke-static {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Lcom/opera/mini/android/AndroidNativeImage;I)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    move-result v0

    if-nez v0, :cond_0

    :try_start_1
    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->co:Z

    if-eqz v0, :cond_5

    const/16 v0, 0x8

    new-array v0, v0, [B

    :cond_2
    :goto_1
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->k()LCode;

    move-result-object v1

    iget-boolean v2, v1, LCode;->f:Z

    if-eqz v2, :cond_4

    iget v2, v1, LCode;->I:I

    const/4 v3, 0x0

    iput v3, v1, LCode;->I:I

    const/4 v3, 0x0

    iget v4, v1, LCode;->Z:I

    const/4 v5, 0x0

    invoke-static {v0, v3, v2, v4, v5}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BIIII)V

    const/4 v3, 0x0

    const/16 v4, 0x8

    invoke-virtual {p0, v0, v3, v4}, Lcom/opera/mini/android/AndroidNativeImage;->Z([BII)V

    const/16 v3, 0x8

    invoke-virtual {p0, v0, v3}, Lcom/opera/mini/android/AndroidNativeImage;->I([BI)V

    const/4 v3, 0x7

    if-ne v2, v3, :cond_2

    invoke-virtual {p0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->I(LCode;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v0

    :try_start_2
    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cp:Z

    if-nez v0, :cond_3

    :cond_3
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_0

    :catchall_1
    move-exception v0

    goto :goto_0

    :cond_4
    :try_start_3
    invoke-virtual {v1}, LCode;->B()Z

    move-result v2

    if-nez v2, :cond_2

    const/16 v2, 0x2710

    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->j(I)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    aget-object v2, v2, v3

    const/4 v3, 0x0

    invoke-virtual {p0, v1, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;I)[B

    move-result-object v3

    invoke-virtual {p0, v1, v2, v3}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;Ljava/lang/String;[B)Z

    goto :goto_1

    :cond_5
    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-eqz v0, :cond_6

    :cond_6
    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->y()V

    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Lcom/opera/mini/android/AndroidNativeImage;)I

    move-result v0

    if-gez v0, :cond_a

    const/16 v1, 0xf

    new-array v1, v1, [B

    const/4 v2, 0x0

    const/4 v3, 0x1

    aput-byte v3, v1, v2

    const/4 v2, 0x1

    const/4 v3, 0x2

    aput-byte v3, v1, v2

    const/4 v2, 0x2

    const/4 v3, 0x0

    aput-byte v3, v1, v2

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cA:[B

    invoke-static {v2}, Lcom/opera/mini/android/AndroidNativeImage;->Code([B)Lcom/opera/mini/generic/LogicalDocument;

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cA:[B

    const/4 v3, 0x0

    sget-object v4, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    const/4 v5, 0x0

    const/16 v6, 0x8

    invoke-static {v2, v3, v4, v5, v6}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cz:[B

    const/4 v3, 0x0

    const/4 v4, 0x3

    const/16 v5, 0x8

    invoke-static {v2, v3, v1, v4, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cs:[I

    const/4 v3, 0x0

    aget v2, v2, v3

    const/16 v3, 0xb

    invoke-static {v2, v1, v3}, Lcom/opera/mini/generic/LogicalDocument;->J(I[BI)V

    const/16 v2, 0x7530

    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->j(I)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    const/4 v2, 0x0

    :try_start_4
    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    iget v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    aget-object v3, v3, v4

    invoke-virtual {p0, v2, v3, v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;Ljava/lang/String;[B)Z
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    const/4 v1, 0x0

    const/4 v2, 0x5

    :try_start_5
    invoke-virtual {p0, v1, v2}, Lcom/opera/mini/android/AndroidNativeImage;->C(II)V

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x0

    aget-byte v1, v1, v2

    const/16 v2, 0x48

    if-ne v1, v2, :cond_7

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->u()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :catchall_2
    move-exception v0

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->k()LCode;

    throw v0

    :cond_7
    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x0

    aget-byte v1, v1, v2

    if-eq v1, v11, :cond_8

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :cond_8
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->v()V

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->s()V

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->x()Z

    move-result v1

    if-eqz v1, :cond_9

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V

    const/4 v0, 0x1

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->h(I)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :cond_9
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v1

    if-nez v1, :cond_a

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bZ:Z

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :cond_a
    if-gez v0, :cond_b

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->y()V

    invoke-static {p0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Lcom/opera/mini/android/AndroidNativeImage;)I

    move-result v0

    :cond_b
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->k()LCode;

    move-result-object v1

    const v2, 0x3a980

    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->j(I)V

    sget-object v2, Lcom/opera/mini/android/AndroidNativeImage;->bO:[Ljava/lang/String;

    iget v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bN:I

    aget-object v2, v2, v3

    invoke-virtual {p0, v1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;I)[B

    move-result-object v0

    invoke-virtual {p0, v1, v2, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;Ljava/lang/String;[B)Z

    const/4 v0, 0x0

    const/4 v1, 0x5

    invoke-virtual {p0, v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->C(II)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v1, 0x0

    aget-byte v0, v0, v1

    sparse-switch v0, :sswitch_data_0

    :cond_c
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :sswitch_0
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->v()V

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->x()Z

    move-result v0

    if-eqz v0, :cond_d

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V

    const/4 v0, 0x1

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->h(I)V

    :cond_d
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :sswitch_1
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->m()V

    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->hasAlpha:Z

    if-nez v0, :cond_e

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V

    :cond_e
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cF:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x1

    const/4 v3, 0x4

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BII)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cD:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x5

    const/4 v3, 0x4

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->I([BII)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v1, 0x1

    aget-byte v0, v0, v1

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x5

    aget-byte v1, v1, v2

    if-ne v0, v1, :cond_f

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v1, 0x2

    aget-byte v0, v0, v1

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x6

    aget-byte v1, v1, v2

    if-ne v0, v1, :cond_f

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v1, 0x3

    aget-byte v0, v0, v1

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x7

    aget-byte v1, v1, v2

    if-ne v0, v1, :cond_f

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v1, 0x4

    aget-byte v0, v0, v1

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v2, 0x8

    aget-byte v1, v1, v2

    if-eq v0, v1, :cond_10

    :cond_f
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :sswitch_2
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->u()Z

    move-result v0

    if-eqz v0, :cond_c

    :cond_10
    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v0

    if-eqz v0, :cond_11

    new-instance v0, Ljava/lang/Thread;

    invoke-direct {v0, p0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    :cond_11
    :goto_2
    const/4 v0, 0x0

    sub-int v1, v10, v11

    invoke-virtual {p0, v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->C(II)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cF:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v2, 0x0

    const/4 v3, 0x6

    invoke-virtual {v0, v1, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;->J([BII)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    sub-int v1, v10, v12

    invoke-static {v0, v1}, Lcom/opera/mini/generic/LogicalDocument;->b([BI)I

    move-result v0

    const/16 v1, 0x3f6

    if-le v0, v1, :cond_12

    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0

    :cond_12
    sub-int v1, v10, v11

    invoke-virtual {p0, v1, v0}, Lcom/opera/mini/android/AndroidNativeImage;->C(II)V

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->m()V

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cF:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v3, 0x6

    invoke-virtual {v1, v2, v3, v0}, Lcom/opera/mini/generic/LogicalDocument;->J([BII)V

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cD:Lcom/opera/mini/generic/LogicalDocument;

    iget v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    add-int/lit8 v3, v2, 0x1

    iput v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->bI:I

    invoke-virtual {v1, v2}, Lcom/opera/mini/generic/LogicalDocument;->b(I)V

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cD:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v3, 0x4

    add-int/lit8 v4, v0, 0x2

    invoke-virtual {v1, v2, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->Code([BII)V

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->cD:Lcom/opera/mini/generic/LogicalDocument;

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v3, 0x3fc

    const/4 v4, 0x4

    invoke-virtual {v1, v2, v3, v4}, Lcom/opera/mini/generic/LogicalDocument;->I([BII)V

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v2, 0x3fc

    aget-byte v1, v1, v2

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v3, 0x0

    aget-byte v2, v2, v3

    if-ne v1, v2, :cond_13

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v2, 0x3fd

    aget-byte v1, v1, v2

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v3, 0x1

    aget-byte v2, v2, v3

    if-ne v1, v2, :cond_13

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v2, 0x3fe

    aget-byte v1, v1, v2

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v3, 0x2

    aget-byte v2, v2, v3

    if-ne v1, v2, :cond_13

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v2, 0x3ff

    aget-byte v1, v1, v2

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v3, 0x3

    aget-byte v2, v2, v3

    if-eq v1, v2, :cond_14

    :cond_13
    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0

    :cond_14
    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    sub-int v2, v10, v11

    aget-byte v1, v1, v2

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    sub-int v3, v10, v9

    aget-byte v2, v2, v3

    add-int/lit8 v0, v0, -0x2

    packed-switch v1, :pswitch_data_0

    :pswitch_0
    goto/16 :goto_2

    :pswitch_1
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_2

    :pswitch_2
    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v5, 0x8

    invoke-virtual {v3, v4, v5, v0}, Lf;->setInput([BII)V

    :pswitch_3
    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->g(I)LCode;

    move-result-object v2

    move-object v3, v2

    move v4, v0

    move v0, v8

    move v2, v10

    :cond_15
    if-nez v3, :cond_17

    const/16 v0, 0xb

    if-ne v1, v0, :cond_11

    :goto_3
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/16 v3, 0x400

    invoke-virtual {v0, v1, v2, v3}, Lf;->Code([BII)I

    move-result v0

    if-lez v0, :cond_11

    goto :goto_3

    :cond_16
    const/16 v5, 0x3e8

    invoke-static {v3, v5}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Object;I)V

    :cond_17
    iget-object v5, v3, LCode;->C:[B

    if-nez v5, :cond_18

    iget-boolean v5, v3, LCode;->f:Z

    if-eqz v5, :cond_16

    const/4 v3, 0x0

    :goto_4
    if-eqz v0, :cond_15

    goto/16 :goto_2

    :cond_18
    iget v5, v3, LCode;->j:I

    invoke-static {v5, v4}, Ljava/lang/Math;->min(II)I

    move-result v5

    packed-switch v1, :pswitch_data_1

    :pswitch_4
    move v13, v5

    move v5, v0

    move v0, v13

    :goto_5
    invoke-virtual {v3, v0}, LCode;->Z(I)V

    add-int/2addr v2, v0

    sub-int v0, v4, v0

    move v4, v0

    move v0, v5

    goto :goto_4

    :pswitch_5
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    iget-object v6, v3, LCode;->C:[B

    iget v7, v3, LCode;->i:I

    invoke-static {v0, v2, v6, v7, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    if-ne v5, v4, :cond_19

    move v0, v9

    :goto_6
    invoke-virtual {v3, v5}, LCode;->B(I)V

    move v13, v5

    move v5, v0

    move v0, v13

    goto :goto_5

    :cond_19
    move v0, v8

    goto :goto_6

    :pswitch_6
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    iget-object v5, v3, LCode;->C:[B

    iget v6, v3, LCode;->i:I

    iget v7, v3, LCode;->j:I

    invoke-virtual {v0, v5, v6, v7}, Lf;->Code([BII)I

    move-result v0

    if-nez v0, :cond_1a

    move v5, v9

    :goto_7
    iget-object v6, p0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    iget v6, v6, Lf;->Code:I

    invoke-virtual {v3, v6}, LCode;->B(I)V

    goto :goto_5

    :cond_1a
    move v5, v8

    goto :goto_7

    :pswitch_7
    invoke-virtual {v3}, LCode;->b()V

    const/4 v0, 0x1

    invoke-static {v3, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(LCode;Z)V

    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->hasAlpha:Z

    if-eqz v0, :cond_1b

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v0

    if-nez v0, :cond_1b

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cl:Lf;

    :cond_1b
    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bK:[I

    const/16 v1, 0x32

    aget v0, v0, v1

    if-ne v0, v9, :cond_11

    const/4 v0, 0x0

    sput-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->aq:Z

    const-string v0, "md"

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    goto/16 :goto_2

    :pswitch_8
    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->f(I)V

    goto/16 :goto_2

    :pswitch_9
    iget v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    sub-int/2addr v0, v9

    const/4 v1, 0x0

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bJ:I

    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->g(I)LCode;

    move-result-object v0

    invoke-virtual {v0}, LCode;->J()V

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Z)V

    goto/16 :goto_2

    :pswitch_a
    iget-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->hasAlpha:Z

    if-eqz v0, :cond_11

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    if-eqz v0, :cond_1c

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v1, 0x8

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    const/4 v3, 0x0

    const/16 v4, 0x8

    invoke-static {v0, v1, v2, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->bZ:Z

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    goto/16 :goto_0

    :cond_1c
    const/16 v0, 0x8

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v1, 0x8

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->cm:[B

    const/4 v3, 0x0

    const/16 v4, 0x8

    invoke-static {v0, v1, v2, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    goto/16 :goto_2

    :pswitch_b
    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aE:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->at()Lf;

    move-result-object v0

    iput-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->ck:Lf;

    const v1, 0x8000

    invoke-virtual {v0, v1}, Lf;->Code(I)V

    goto/16 :goto_2

    :pswitch_c
    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v2, 0x8

    add-int/lit8 v0, v0, 0x8

    invoke-static {v1, v2, v0}, Lcom/opera/mini/generic/LogicalDocument;->B([BII)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/opera/mini/generic/LogicalDocument;

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-direct {v1, v0, v2, v3}, Lcom/opera/mini/generic/LogicalDocument;-><init>(Ljava/lang/String;II)V

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->Code(Ljava/lang/Runnable;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    goto/16 :goto_2

    nop

    :sswitch_data_0
    .sparse-switch
        0x2 -> :sswitch_0
        0x3 -> :sswitch_1
        0x48 -> :sswitch_2
    .end sparse-switch

    :pswitch_data_0
    .packed-switch 0x4
        :pswitch_1
        :pswitch_0
        :pswitch_3
        :pswitch_8
        :pswitch_0
        :pswitch_9
        :pswitch_3
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_a
        :pswitch_0
        :pswitch_b
        :pswitch_0
        :pswitch_0
        :pswitch_c
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x6
        :pswitch_7
        :pswitch_4
        :pswitch_4
        :pswitch_4
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method public final s()V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/opera/mini/android/AndroidNativeImage;->cH:Ljava/lang/Object;

    monitor-enter v0

    const/4 v1, 0x0

    :try_start_0
    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    const/4 v1, 0x0

    sput-boolean v1, Lcom/opera/mini/android/AndroidNativeImage;->bW:Z

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->r()Z

    move-result v1

    if-eqz v1, :cond_1

    move v1, v3

    :goto_0
    sput v1, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    const-string v1, "md"

    invoke-static {v1}, Lcom/opera/mini/android/AndroidNativeImage;->C(Ljava/lang/String;)V

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    invoke-virtual {v0}, Lcom/opera/mini/generic/LogicalDocument;->aI()V

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    sget v1, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    if-ne v1, v3, :cond_2

    move v1, v3

    :goto_1
    invoke-virtual {v0, v1}, Lcom/opera/bream/vm/BreamVM;->ipush(I)V

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aG:Lcom/opera/bream/vm/BreamVM;

    invoke-virtual {v0, v2}, Lcom/opera/bream/vm/BreamVM;->ipush(I)V

    sget-object v0, Lcom/opera/mini/generic/LogicalDocument;->aF:Lcom/opera/mini/generic/LogicalDocument;

    const/16 v1, 0x43

    invoke-virtual {v0, v2, v1}, Lcom/opera/mini/generic/LogicalDocument;->d(II)V

    :cond_0
    return-void

    :cond_1
    const/4 v1, 0x2

    goto :goto_0

    :catchall_0
    move-exception v1

    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1

    :cond_2
    move v1, v2

    goto :goto_1
.end method

.method public final u()Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v2, 0x1

    const/4 v0, 0x5

    const/4 v1, 0x7

    invoke-virtual {p0, v0, v1}, Lcom/opera/mini/android/AndroidNativeImage;->C(II)V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v1, 0x8

    aget-byte v0, v0, v1

    const/16 v1, 0x20

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v1, 0x9

    aget-byte v0, v0, v1

    const/16 v1, 0x35

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v1, 0xa

    aget-byte v0, v0, v1

    const/16 v1, 0x30

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/16 v1, 0xb

    aget-byte v0, v0, v1

    const/16 v1, 0x32

    if-ne v0, v1, :cond_2

    sget-boolean v0, Lcom/opera/mini/android/AndroidNativeImage;->bX:Z

    if-eqz v0, :cond_0

    sget v0, Lcom/opera/mini/android/AndroidNativeImage;->bU:I

    if-ne v0, v2, :cond_1

    :cond_0
    const/4 v0, 0x2

    invoke-static {v0}, Lcom/opera/mini/android/AndroidNativeImage;->l(I)V

    :cond_1
    iput-boolean v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->bZ:Z

    invoke-virtual {p0, v2}, Lcom/opera/mini/android/AndroidNativeImage;->Z(Z)V

    move v0, v2

    :goto_0
    return v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final v()V
    .locals 9
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v6, 0x2

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->o()V

    invoke-static {}, Lcom/opera/mini/android/AndroidNativeImage;->w()V

    iget-object v0, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    const/4 v1, 0x1

    aget-byte v0, v0, v1

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x2

    add-int/lit16 v0, v0, 0x80

    iget-object v1, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    aget-byte v1, v1, v6

    and-int/lit16 v1, v1, 0xff

    const/4 v2, 0x5

    add-int/lit16 v3, v1, 0xa6

    add-int/2addr v3, v0

    invoke-virtual {p0, v2, v3}, Lcom/opera/mini/android/AndroidNativeImage;->C(II)V

    invoke-virtual {p0}, Lcom/opera/mini/android/AndroidNativeImage;->n()V

    add-int/lit8 v2, v1, 0x1

    new-array v2, v2, [B

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    sget-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cy:[B

    const/4 v4, 0x0

    add-int/lit8 v5, v1, 0x1

    invoke-static {v2, v6, v3, v4, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget-object v2, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    add-int/lit8 v3, v1, 0x3

    const/16 v4, 0xa0

    invoke-static {v2, v3, v4}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BII)[I

    move-result-object v2

    iget-object v3, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    add-int/lit16 v4, v1, 0xa3

    invoke-static {v3, v4, v0}, Lcom/opera/mini/android/AndroidNativeImage;->Code([BII)[I

    move-result-object v3

    iget-object v4, p0, Lcom/opera/mini/android/AndroidNativeImage;->aY:[B

    add-int/lit16 v1, v1, 0xa3

    add-int/2addr v0, v1

    invoke-static {v4, v0}, Lcom/opera/mini/generic/LogicalDocument;->c([BI)I

    move-result v1

    int-to-long v5, v1

    const/16 v1, 0x20

    shl-long/2addr v5, v1

    add-int/lit8 v0, v0, 0x4

    invoke-static {v4, v0}, Lcom/opera/mini/generic/LogicalDocument;->c([BI)I

    move-result v0

    int-to-long v0, v0

    const-wide v7, 0xffffffffL

    and-long/2addr v0, v7

    or-long/2addr v0, v5

    sput-wide v0, Lcom/opera/mini/android/AndroidNativeImage;->ct:J

    sput-object v2, Lcom/opera/mini/android/AndroidNativeImage;->cu:[I

    sput-object v3, Lcom/opera/mini/android/AndroidNativeImage;->cv:[I

    return-void
.end method
